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.001056/0.001056, allocations: 109.4 kB / 18.34 MB, free: 4.676 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.001/0.001, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.31/1.31, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.002278/0.002279, allocations: 59.91 kB / 282.1 MB, free: 2.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1092, allocations: 46.63 MB / 328.7 MB, free: 3.734 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.01529/0.1245, allocations: 13.58 MB / 342.3 MB, free: 6.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007741/0.1323, allocations: 4.432 MB / 346.7 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001746/0.1341, allocations: 67.75 kB / 346.8 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002679/0.1368, allocations: 0.9861 MB / 347.8 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003682/0.1405, allocations: 1.316 MB / 349.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001924/0.1425, allocations: 0.9002 MB / 350 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00429/0.1468, allocations: 4.118 MB / 354.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003458/0.1503, allocations: 3.201 MB / 357.3 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002533/0.1528, allocations: 1.885 MB / 359.2 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002603/0.1554, allocations: 2.094 MB / 361.3 MB, free: 2.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006165/0.1561, allocations: 0.5078 MB / 361.8 MB, free: 2.438 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001195/0.1573, allocations: 0.7068 MB / 362.5 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008565/0.1581, allocations: 1.11 MB / 363.6 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002118/0.1603, allocations: 2.136 MB / 365.8 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005908/0.1662, allocations: 6.691 MB / 372.5 MB, free: 7.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1662, allocations: 0 / 372.5 MB, free: 7.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.258e-06/0.1662, allocations: 0 / 372.5 MB, free: 7.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.838e-05/0.1663, allocations: 3.938 kB / 372.5 MB, free: 7.754 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.01015/0.1765, allocations: 4.402 MB / 376.9 MB, free: 3.281 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.1765, allocations: 8.031 kB / 376.9 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004221/0.1807, allocations: 0.8124 MB / 377.7 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004503/0.1853, allocations: 2.283 MB / 380 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1375/0.3228, allocations: 239.6 kB / 380.2 MB, free: 49.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001039/0.3239, allocations: 327.4 kB / 380.5 MB, free: 49.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009987/0.3339, allocations: 4.261 MB / 384.8 MB, free: 47.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001068/0.334, allocations: 10.75 kB / 384.8 MB, free: 47.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000504/0.3345, allocations: 130.8 kB / 384.9 MB, free: 47.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001378/0.3347, allocations: 145.2 kB / 385.1 MB, free: 47.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006206/0.3409, allocations: 3.597 MB / 388.7 MB, free: 46.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01621/0.3571, allocations: 13.71 MB / 402.4 MB, free: 37.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004449/0.3616, allocations: 6.565 MB / 408.9 MB, free: 31.01 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001798/0.3634, allocations: 1.391 MB / 410.3 MB, free: 30.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00489/0.3683, allocations: 3.623 MB / 414 MB, free: 26.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.3683, allocations: 48.62 kB / 414 MB, free: 26.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=134): time 3.356e-06/0.3684, allocations: 0 / 414 MB, free: 26.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=137): time 0.008699/0.3771, allocations: 5.875 MB / 419.9 MB, free: 20.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/0.3771, allocations: 66.78 kB / 419.9 MB, free: 20.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/0.379, allocations: 1.784 MB / 421.7 MB, free: 18.97 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.765e-05/0.379, allocations: 52.88 kB / 421.8 MB, free: 18.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005682/0.3796, allocations: 1.438 MB / 423.2 MB, free: 17.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/0.3798, allocations: 476.3 kB / 423.7 MB, free: 17 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003742/0.3802, allocations: 319.2 kB / 424 MB, free: 16.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.319e-05/0.3803, allocations: 301.1 kB / 424.3 MB, free: 16.39 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008428/0.3811, allocations: 0.6832 MB / 425 MB, free: 15.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009994/0.3821, allocations: 1.201 MB / 426.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.3841, allocations: 1.999 MB / 428.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.792e-06/0.3841, allocations: 8 kB / 428.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003127/0.3872, allocations: 2.542 MB / 430.7 MB, free: 9.473 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.3872, allocations: 12 kB / 430.7 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.3873, allocations: 16.34 kB / 430.7 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007896/0.3881, allocations: 361 kB / 431.1 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.3893, allocations: 387.3 kB / 431.5 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005466/0.3948, allocations: 8.403 MB / 439.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.3961, allocations: 82 kB / 440 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.3962, allocations: 76 kB / 440 MB, free: 15.61 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.001606/0.3978, allocations: 1.009 MB / 441 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002747/0.3981, allocations: 189.7 kB / 441.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003682/0.4018, allocations: 2.288 MB / 443.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.4018, allocations: 12 kB / 443.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.4019, allocations: 8 kB / 443.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.392e-05/0.4019, allocations: 7.969 kB / 443.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007539/0.4094, allocations: 5.08 MB / 448.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.4095, allocations: 0 / 448.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007928/0.4103, allocations: 171.8 kB / 448.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001381/0.4116, allocations: 0.5421 MB / 449.3 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.169e-05/0.4118, allocations: 44.11 kB / 449.4 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01215/0.4239, allocations: 13.21 MB / 462.6 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4239, allocations: 4.078 kB / 462.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004968/0.4289, allocations: 3.215 MB / 465.8 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009974/0.4299, allocations: 426.6 kB / 466.2 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000237/0.4302, allocations: 35.98 kB / 466.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008399/0.431, allocations: 64.14 kB / 466.3 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/0.4313, allocations: 109.2 kB / 466.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.013e-05/0.4314, allocations: 35.94 kB / 466.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001715/0.4331, allocations: 1.223 MB / 467.7 MB, free: 2.852 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4331, allocations: 0 / 467.7 MB, free: 2.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001944/0.4351, allocations: 0.5859 MB / 468.3 MB, free: 2.266 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.0003071/0.4354, allocations: 173.8 kB / 468.4 MB, free: 2.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003337/0.4387, allocations: 2.364 MB / 470.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.4388, allocations: 0 / 470.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002454/0.4412, allocations: 1.736 MB / 472.5 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002095/0.4433, allocations: 0.5422 MB / 473.1 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009094/0.4524, allocations: 5.824 MB / 478.9 MB, free: 7.449 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001913/0.4544, allocations: 2.307 MB / 481.2 MB, free: 5.113 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001273/0.4557, allocations: 397.1 kB / 481.6 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003063/0.456, allocations: 123.4 kB / 481.7 MB, free: 4.602 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.456, allocations: 0 / 481.7 MB, free: 4.602 MB / 366.1 MB Notification: Performance of Templates: time 0.0483/0.5043, allocations: 29.65 MB / 0.4994 GB, free: 6.941 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 gbode -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