Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 113.7 kB / 16.62 MB, free: 6.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 190 kB / 17.54 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 42.56 kB / 300.1 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1121, allocations: 49.46 MB / 349.6 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01335/0.1254, allocations: 11.7 MB / 361.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008804/0.1343, allocations: 3.873 MB / 365.2 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002566/0.1369, allocations: 63.69 kB / 365.2 MB, free: 5.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003238/0.1403, allocations: 0.7422 MB / 366 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004265/0.1446, allocations: 0.878 MB / 366.8 MB, free: 3.395 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001654/0.1462, allocations: 471.5 kB / 367.3 MB, free: 2.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1986/0.3449, allocations: 3.42 MB / 370.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003699/0.3486, allocations: 2.72 MB / 373.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002353/0.351, allocations: 1.542 MB / 375 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003596/0.3546, allocations: 1.974 MB / 377 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001109/0.3557, allocations: 407.8 kB / 377.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001857/0.3576, allocations: 0.6482 MB / 378 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001244/0.3588, allocations: 1.152 MB / 379.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002749/0.3616, allocations: 1.838 MB / 381 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006487/0.3681, allocations: 5.321 MB / 386.3 MB, free: 7.445 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.355e-06/0.3682, allocations: 0 / 386.3 MB, free: 7.445 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3682, allocations: 0 / 386.3 MB, free: 7.445 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000251/0.3684, allocations: 0 / 386.3 MB, free: 7.445 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.0102/0.3786, allocations: 3.709 MB / 390 MB, free: 4.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.3787, allocations: 9.125 kB / 390 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001584/0.3803, allocations: 433.3 kB / 390.5 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003167/0.3835, allocations: 1.899 MB / 392.4 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001709/0.3837, allocations: 208.2 kB / 392.6 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004319/0.3841, allocations: 280.4 kB / 392.8 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006059/0.3902, allocations: 3.525 MB / 396.4 MB, free: 1.219 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.276e-05/0.3903, allocations: 5.219 kB / 396.4 MB, free: 1.219 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002356/0.3905, allocations: 109.2 kB / 396.5 MB, free: 1.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001178/0.3906, allocations: 123.2 kB / 396.6 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004712/0.3953, allocations: 2.971 MB / 399.6 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02005/0.4154, allocations: 11.1 MB / 410.7 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00315/0.4186, allocations: 2.28 MB / 412.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002104/0.4207, allocations: 1.179 MB / 414.1 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003542/0.4211, allocations: 214.4 kB / 414.3 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.4212, allocations: 43.88 kB / 414.4 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 4.288e-06/0.4212, allocations: 0 / 414.4 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of matching and sorting (n=148): time 0.01852/0.4397, allocations: 7.505 MB / 421.9 MB, free: 8.891 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/0.4398, allocations: 72.66 kB / 421.9 MB, free: 8.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004346/0.4442, allocations: 1.979 MB / 423.9 MB, free: 6.785 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001807/0.4444, allocations: 49.7 kB / 424 MB, free: 6.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.4455, allocations: 1.309 MB / 425.3 MB, free: 5.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005024/0.446, allocations: 0.499 MB / 425.8 MB, free: 4.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006251/0.4467, allocations: 331.2 kB / 426.1 MB, free: 4.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.4468, allocations: 309.1 kB / 426.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001628/0.4484, allocations: 0.8862 MB / 427.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001979/0.4504, allocations: 1.368 MB / 428.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003515/0.454, allocations: 2.379 MB / 431 MB, free: 15.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.63e-05/0.454, allocations: 4 kB / 431 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005373/0.4594, allocations: 2.987 MB / 434 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.4594, allocations: 12 kB / 434 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.333e-05/0.4595, allocations: 15.94 kB / 434.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.4607, allocations: 460.5 kB / 434.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001731/0.4625, allocations: 437.1 kB / 434.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00724/0.4697, allocations: 6.105 MB / 441 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002735/0.4725, allocations: 123.8 kB / 441.2 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003331/0.4728, allocations: 72 kB / 441.2 MB, free: 4.953 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002087/0.4749, allocations: 0.8501 MB / 442.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007013/0.4756, allocations: 209.5 kB / 442.3 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00512/0.4808, allocations: 2.595 MB / 444.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.552e-05/0.4808, allocations: 16 kB / 444.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.708e-05/0.4808, allocations: 8 kB / 444.9 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.026e-05/0.4809, allocations: 7.969 kB / 444.9 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01181/0.4927, allocations: 5.646 MB / 450.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.4927, allocations: 4 kB / 450.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/0.494, allocations: 282.7 kB / 450.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001487/0.4955, allocations: 0.4915 MB / 451.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002111/0.4957, allocations: 35.98 kB / 451.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009272/0.505, allocations: 7.684 MB / 459 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.738e-06/0.5051, allocations: 7.938 kB / 459.1 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006738/0.5118, allocations: 3.84 MB / 462.9 MB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001571/0.5134, allocations: 482.3 kB / 463.4 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007686/0.5142, allocations: 39.98 kB / 463.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001656/0.5158, allocations: 95.89 kB / 463.5 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003372/0.5162, allocations: 124.1 kB / 463.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/0.5163, allocations: 39.98 kB / 463.7 MB, free: 14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002835/0.5192, allocations: 1.356 MB / 465 MB, free: 12.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5192, allocations: 0 / 465 MB, free: 12.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003012/0.5222, allocations: 0.582 MB / 465.6 MB, free: 12.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007218/0.523, allocations: 235.8 kB / 465.8 MB, free: 11.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007164/0.5301, allocations: 3.358 MB / 469.2 MB, free: 8.473 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.5302, allocations: 0 / 469.2 MB, free: 8.473 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002928/0.5331, allocations: 1.612 MB / 470.8 MB, free: 6.852 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003496/0.5366, allocations: 0.4909 MB / 471.3 MB, free: 6.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01204/0.5487, allocations: 6.828 MB / 478.1 MB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002418/0.5511, allocations: 2.132 MB / 480.2 MB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001872/0.553, allocations: 473 kB / 480.7 MB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006251/0.5537, allocations: 139.4 kB / 480.8 MB, free: 12.73 MB / 398.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5537, allocations: 0 / 480.8 MB, free: 12.73 MB / 398.1 MB Notification: Performance of Templates: time 0.05537/0.609, allocations: 30.77 MB / 0.4996 GB, free: 14.34 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches