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.001234/0.001234, allocations: 102.6 kB / 17.58 MB, free: 5.422 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.001295/0.001295, allocations: 191.9 kB / 18.5 MB, free: 4.516 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.32/1.32, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001376/0.001376, allocations: 55.92 kB / 280.7 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08703/0.08842, allocations: 46.63 MB / 327.3 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.01555/0.104, allocations: 13.57 MB / 340.9 MB, free: 6.832 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008294/0.1124, allocations: 4.439 MB / 345.3 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00199/0.1145, allocations: 67.75 kB / 345.4 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002879/0.1174, allocations: 0.9861 MB / 346.4 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004293/0.1217, allocations: 1.304 MB / 347.7 MB, free: 4 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002645/0.1243, allocations: 0.9157 MB / 348.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005872/0.1302, allocations: 4.087 MB / 352.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005066/0.1353, allocations: 3.193 MB / 355.9 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002804/0.1381, allocations: 1.877 MB / 357.7 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003077/0.1412, allocations: 2.082 MB / 359.8 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001094/0.1423, allocations: 0.5078 MB / 360.3 MB, free: 3.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001901/0.1442, allocations: 0.7224 MB / 361 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001379/0.1456, allocations: 1.11 MB / 362.2 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002973/0.1486, allocations: 2.132 MB / 364.3 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006566/0.1552, allocations: 6.656 MB / 370.9 MB, free: 8.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1552, allocations: 4 kB / 370.9 MB, free: 8.578 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1552, allocations: 0 / 370.9 MB, free: 8.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001925/0.1554, allocations: 0 / 370.9 MB, free: 8.578 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.01153/0.167, allocations: 4.402 MB / 375.3 MB, free: 4.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.167, allocations: 8.031 kB / 375.4 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00445/0.1715, allocations: 0.8202 MB / 376.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004143/0.1756, allocations: 2.256 MB / 378.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/0.1758, allocations: 246.8 kB / 378.7 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007712/0.1766, allocations: 328 kB / 379 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1596/0.3363, allocations: 4.263 MB / 383.3 MB, free: 47.72 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001356/0.3364, allocations: 6.375 kB / 383.3 MB, free: 47.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006423/0.3371, allocations: 131.1 kB / 383.4 MB, free: 47.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001616/0.3373, allocations: 148.7 kB / 383.5 MB, free: 47.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007317/0.3446, allocations: 3.594 MB / 387.1 MB, free: 46.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01979/0.3644, allocations: 13.89 MB / 401 MB, free: 37.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004804/0.3692, allocations: 6.567 MB / 407.6 MB, free: 30.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001875/0.3712, allocations: 1.383 MB / 409 MB, free: 30.31 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00488/0.3761, allocations: 3.655 MB / 412.6 MB, free: 27.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.3761, allocations: 43.88 kB / 412.7 MB, free: 27.31 MB / 318.1 MB Notification: Performance of pre-optimization done (n=134): time 3.426e-06/0.3761, allocations: 0 / 412.7 MB, free: 27.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=137): time 0.009855/0.386, allocations: 5.867 MB / 418.5 MB, free: 21.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.386, allocations: 68.72 kB / 418.6 MB, free: 21.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002688/0.3887, allocations: 1.788 MB / 420.4 MB, free: 19.37 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.406e-05/0.3888, allocations: 57.7 kB / 420.4 MB, free: 19.31 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007021/0.3895, allocations: 1.43 MB / 421.9 MB, free: 17.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002766/0.3898, allocations: 476.7 kB / 422.3 MB, free: 17.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004819/0.3903, allocations: 315.3 kB / 422.6 MB, free: 17.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.979e-05/0.3904, allocations: 305.1 kB / 422.9 MB, free: 16.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000926/0.3913, allocations: 0.676 MB / 423.6 MB, free: 16.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.3924, allocations: 1.204 MB / 424.8 MB, free: 14.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00203/0.3944, allocations: 1.999 MB / 426.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/0.3944, allocations: 4 kB / 426.8 MB, free: 12.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003276/0.3977, allocations: 2.544 MB / 429.4 MB, free: 9.883 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.3978, allocations: 12.98 kB / 429.4 MB, free: 9.871 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.092e-05/0.3978, allocations: 20.34 kB / 429.4 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008575/0.3987, allocations: 358.7 kB / 429.8 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/0.3999, allocations: 387.3 kB / 430.1 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0054/0.4053, allocations: 8.407 MB / 438.5 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.4067, allocations: 79.86 kB / 438.6 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/0.4069, allocations: 76 kB / 438.7 MB, free: 16 kB / 318.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.002184/0.409, allocations: 1.001 MB / 439.7 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005446/0.4096, allocations: 201.6 kB / 439.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00409/0.4137, allocations: 2.292 MB / 442.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.4137, allocations: 16 kB / 442.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.628e-05/0.4138, allocations: 12 kB / 442.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.4138, allocations: 3.984 kB / 442.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009251/0.423, allocations: 5.075 MB / 447.3 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.4231, allocations: 3.938 kB / 447.3 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007957/0.4239, allocations: 175.8 kB / 447.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001367/0.4253, allocations: 0.54 MB / 448 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.4254, allocations: 39.98 kB / 448 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01187/0.4373, allocations: 13.22 MB / 461.3 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.4373, allocations: 7.969 kB / 461.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004863/0.4422, allocations: 3.224 MB / 464.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009354/0.4431, allocations: 422.6 kB / 464.9 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000386/0.4435, allocations: 32 kB / 464.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009707/0.4445, allocations: 71.94 kB / 465 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.4447, allocations: 105.2 kB / 465.1 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.659e-05/0.4448, allocations: 39.98 kB / 465.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001954/0.4468, allocations: 1.219 MB / 466.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4468, allocations: 3.938 kB / 466.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002094/0.4489, allocations: 0.5742 MB / 467 MB, free: 2.66 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.0003408/0.4493, allocations: 169.4 kB / 467.1 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004772/0.454, allocations: 2.699 MB / 469.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.4541, allocations: 4 kB / 469.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002462/0.4565, allocations: 1.748 MB / 471.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002358/0.4589, allocations: 0.5372 MB / 472.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.4691, allocations: 5.896 MB / 478 MB, free: 7.438 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002576/0.4717, allocations: 2.305 MB / 480.3 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001476/0.4732, allocations: 397 kB / 480.7 MB, free: 4.715 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/0.4736, allocations: 123.4 kB / 480.8 MB, free: 4.594 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4736, allocations: 0 / 480.8 MB, free: 4.594 MB / 366.1 MB Notification: Performance of Templates: time 0.05033/0.5239, allocations: 29.72 MB / 0.4986 GB, free: 6.859 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 -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/jenkins/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/jenkins/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