Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 99.39 kB / 18.35 MB, free: 4.648 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.001496/0.001496, allocations: 192 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 51.92 kB / 282.1 MB, free: 2.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1333, allocations: 46.64 MB / 328.7 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.02001/0.1534, allocations: 13.57 MB / 342.3 MB, free: 6.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008116/0.1615, allocations: 4.439 MB / 346.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002001/0.1636, allocations: 67.75 kB / 346.8 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002852/0.1665, allocations: 0.9861 MB / 347.8 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003968/0.1705, allocations: 1.308 MB / 349.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002141/0.1726, allocations: 0.9041 MB / 350 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00451/0.1771, allocations: 4.121 MB / 354.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003473/0.1806, allocations: 3.197 MB / 357.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002672/0.1833, allocations: 1.885 MB / 359.2 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003039/0.1864, allocations: 2.09 MB / 361.3 MB, free: 2.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007671/0.1872, allocations: 0.5078 MB / 361.8 MB, free: 2.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001389/0.1885, allocations: 0.7107 MB / 362.5 MB, free: 1.773 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001009/0.1896, allocations: 1.11 MB / 363.6 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002476/0.1921, allocations: 2.139 MB / 365.8 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006328/0.1984, allocations: 6.695 MB / 372.5 MB, free: 7.797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1984, allocations: 0 / 372.5 MB, free: 7.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1984, allocations: 0 / 372.5 MB, free: 7.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001357/0.1986, allocations: 0 / 372.5 MB, free: 7.797 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01038/0.209, allocations: 4.394 MB / 376.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.209, allocations: 12.03 kB / 376.9 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004101/0.2131, allocations: 0.8202 MB / 377.7 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004089/0.2172, allocations: 2.276 MB / 380 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1382/0.3554, allocations: 240.7 kB / 380.2 MB, free: 49.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001223/0.3567, allocations: 332.3 kB / 380.5 MB, free: 49.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007551/0.3643, allocations: 4.262 MB / 384.8 MB, free: 48.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.129e-05/0.3644, allocations: 3.688 kB / 384.8 MB, free: 48.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002718/0.3646, allocations: 131.2 kB / 384.9 MB, free: 47.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001623/0.3648, allocations: 147.7 kB / 385.1 MB, free: 47.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006164/0.371, allocations: 3.595 MB / 388.7 MB, free: 46.49 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01625/0.3872, allocations: 13.71 MB / 402.4 MB, free: 37.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004396/0.3917, allocations: 6.566 MB / 408.9 MB, free: 31.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001729/0.3934, allocations: 1.388 MB / 410.3 MB, free: 30.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004587/0.398, allocations: 3.626 MB / 414 MB, free: 27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.398, allocations: 51.86 kB / 414 MB, free: 26.94 MB / 318.1 MB Notification: Performance of pre-optimization done (n=134): time 2.665e-06/0.3981, allocations: 0 / 414 MB, free: 26.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=137): time 0.008685/0.4067, allocations: 5.876 MB / 419.9 MB, free: 20.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.402e-05/0.4068, allocations: 64.72 kB / 419.9 MB, free: 20.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001796/0.4086, allocations: 1.788 MB / 421.7 MB, free: 19 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.224e-05/0.4087, allocations: 49.7 kB / 421.8 MB, free: 18.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005407/0.4092, allocations: 1.434 MB / 423.2 MB, free: 17.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002047/0.4094, allocations: 480.5 kB / 423.7 MB, free: 17.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003748/0.4098, allocations: 319.2 kB / 424 MB, free: 16.72 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.42e-05/0.4099, allocations: 305.1 kB / 424.3 MB, free: 16.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000853/0.4107, allocations: 0.6793 MB / 425 MB, free: 15.74 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.4118, allocations: 1.198 MB / 426.2 MB, free: 14.33 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001906/0.4137, allocations: 2.003 MB / 428.2 MB, free: 12.1 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.4137, allocations: 8 kB / 428.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003067/0.4168, allocations: 2.539 MB / 430.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.4168, allocations: 12 kB / 430.7 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.4168, allocations: 16 kB / 430.8 MB, free: 9.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000806/0.4176, allocations: 365.3 kB / 431.1 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/0.4189, allocations: 383.4 kB / 431.5 MB, free: 8.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005512/0.4244, allocations: 8.404 MB / 439.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/0.4257, allocations: 71.97 kB / 440 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.4258, allocations: 79.98 kB / 440 MB, free: 15.65 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001616/0.4274, allocations: 1.009 MB / 441 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002916/0.4277, allocations: 189.7 kB / 441.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003856/0.4316, allocations: 2.292 MB / 443.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.4316, allocations: 12.55 kB / 443.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.4316, allocations: 8 kB / 443.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.4316, allocations: 7.969 kB / 443.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00775/0.4394, allocations: 5.083 MB / 448.6 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.4394, allocations: 0 / 448.6 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008167/0.4403, allocations: 175.8 kB / 448.8 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001353/0.4416, allocations: 0.5383 MB / 449.3 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.845e-05/0.4417, allocations: 36 kB / 449.4 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01245/0.4542, allocations: 13.21 MB / 462.6 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.4542, allocations: 8.016 kB / 462.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005146/0.4594, allocations: 3.216 MB / 465.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009674/0.4604, allocations: 426.6 kB / 466.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002475/0.4606, allocations: 36 kB / 466.3 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008391/0.4615, allocations: 64.5 kB / 466.3 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.4618, allocations: 109.1 kB / 466.4 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.559e-05/0.4619, allocations: 39.98 kB / 466.5 MB, free: 4.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001884/0.4637, allocations: 1.219 MB / 467.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4638, allocations: 4 kB / 467.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002323/0.4661, allocations: 0.5781 MB / 468.3 MB, free: 2.324 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003354/0.4664, allocations: 173.9 kB / 468.4 MB, free: 2.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003605/0.4701, allocations: 2.361 MB / 470.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4701, allocations: 4.438 kB / 470.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002632/0.4727, allocations: 1.739 MB / 472.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002183/0.4749, allocations: 0.5383 MB / 473.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008804/0.4837, allocations: 5.826 MB / 478.9 MB, free: 7.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002001/0.4857, allocations: 2.303 MB / 481.2 MB, free: 5.168 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001218/0.487, allocations: 405 kB / 481.6 MB, free: 4.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002939/0.4873, allocations: 119.4 kB / 481.7 MB, free: 4.652 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4873, allocations: 4 kB / 481.7 MB, free: 4.648 MB / 366.1 MB Notification: Performance of Templates: time 0.04959/0.5369, allocations: 29.64 MB / 0.4994 GB, free: 6.996 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Steinmetz/AIMC_Steinmetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches