Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 114.4 kB / 17.69 MB, free: 5.312 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.0009541/0.0009541, allocations: 191 kB / 18.63 MB, free: 4.379 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.426/1.426, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 47.17 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1051, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01633/0.1215, allocations: 13.62 MB / 365.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00907/0.1306, allocations: 4.957 MB / 370.1 MB, free: 1.035 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002199/0.1328, allocations: 79.69 kB / 370.2 MB, free: 0.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1686/0.3014, allocations: 1.032 MB / 371.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00486/0.3064, allocations: 1.407 MB / 372.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002737/0.3091, allocations: 0.9586 MB / 373.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005981/0.3151, allocations: 4.306 MB / 377.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005218/0.3203, allocations: 3.355 MB / 381.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003674/0.324, allocations: 2.003 MB / 383.2 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005359/0.3294, allocations: 2.28 MB / 385.5 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002473/0.3319, allocations: 0.5352 MB / 386.1 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003939/0.3359, allocations: 0.9221 MB / 387 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002045/0.3379, allocations: 1.363 MB / 388.3 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004366/0.3423, allocations: 2.342 MB / 390.7 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007491/0.3498, allocations: 7.362 MB / 398.1 MB, free: 1.711 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3499, allocations: 0 / 398.1 MB, free: 1.711 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3499, allocations: 4 kB / 398.1 MB, free: 1.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001721/0.35, allocations: 0 / 398.1 MB, free: 1.707 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01246/0.3625, allocations: 4.984 MB / 403 MB, free: 14.01 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.3626, allocations: 12.02 kB / 403.1 MB, free: 14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00447/0.3671, allocations: 0.87 MB / 403.9 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005341/0.3724, allocations: 2.778 MB / 406.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/0.3726, allocations: 249.2 kB / 406.9 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007039/0.3733, allocations: 342.3 kB / 407.3 MB, free: 9.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008503/0.3819, allocations: 4.553 MB / 411.8 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-05/0.382, allocations: 0 / 411.8 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003134/0.3823, allocations: 132 kB / 412 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001565/0.3824, allocations: 158.7 kB / 412.1 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006905/0.3894, allocations: 3.915 MB / 416 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02184/0.4112, allocations: 13.99 MB / 430 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00709/0.4184, allocations: 6.975 MB / 437 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002877/0.4213, allocations: 1.69 MB / 438.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008605/0.4299, allocations: 4.244 MB / 442.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.869e-05/0.43, allocations: 55.88 kB / 443 MB, free: 4.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 8.226e-06/0.43, allocations: 0 / 443 MB, free: 4.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01703/0.4471, allocations: 7.757 MB / 450.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.4472, allocations: 69.41 kB / 450.8 MB, free: 13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003754/0.4509, allocations: 2.624 MB / 453.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002603/0.4512, allocations: 55.73 kB / 453.5 MB, free: 10.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001231/0.4525, allocations: 1.625 MB / 455.1 MB, free: 8.656 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005513/0.453, allocations: 0.6213 MB / 455.7 MB, free: 8.039 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005531/0.4536, allocations: 339.2 kB / 456.1 MB, free: 7.699 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.4537, allocations: 305.1 kB / 456.4 MB, free: 7.398 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.4553, allocations: 0.9058 MB / 457.3 MB, free: 6.492 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001843/0.4571, allocations: 1.314 MB / 458.6 MB, free: 5.027 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003375/0.4605, allocations: 2.353 MB / 460.9 MB, free: 2.535 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.4605, allocations: 4 kB / 460.9 MB, free: 2.531 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005315/0.4659, allocations: 3.061 MB / 464 MB, free: 15.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.4659, allocations: 12 kB / 464 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.249e-05/0.4659, allocations: 12 kB / 464 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.4673, allocations: 0.5496 MB / 464.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/0.469, allocations: 431.3 kB / 465 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008591/0.4776, allocations: 7.587 MB / 472.6 MB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/0.4791, allocations: 83.94 kB / 472.7 MB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/0.4793, allocations: 79.98 kB / 472.7 MB, free: 6.438 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (7,34,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001771/0.481, allocations: 1.172 MB / 473.9 MB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004633/0.4815, allocations: 260.8 kB / 474.2 MB, free: 5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004973/0.4865, allocations: 2.885 MB / 477.1 MB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.969e-05/0.4865, allocations: 23.98 kB / 477.1 MB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/0.4866, allocations: 11.98 kB / 477.1 MB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.586e-05/0.4866, allocations: 7.969 kB / 477.1 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.4968, allocations: 6.333 MB / 483.4 MB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.882e-06/0.4968, allocations: 0 / 483.4 MB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.4981, allocations: 283.7 kB / 483.7 MB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001529/0.4996, allocations: 0.6129 MB / 484.3 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.4997, allocations: 47.98 kB / 484.4 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01191/0.5117, allocations: 11.44 MB / 495.8 MB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5117, allocations: 0 / 495.8 MB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007128/0.5188, allocations: 4.151 MB / 500 MB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/0.5202, allocations: 0.5369 MB / 0.4888 GB, free: 9.996 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003196/0.5206, allocations: 42.11 kB / 0.4888 GB, free: 9.957 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.5216, allocations: 91.81 kB / 0.4889 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003615/0.522, allocations: 137.8 kB / 0.489 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.5221, allocations: 47.98 kB / 0.4891 GB, free: 9.684 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002692/0.5248, allocations: 1.846 MB / 0.4909 GB, free: 7.824 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5248, allocations: 0 / 0.4909 GB, free: 7.824 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002365/0.5272, allocations: 0.6876 MB / 0.4915 GB, free: 7.137 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001123/0.5283, allocations: 450.2 kB / 0.492 GB, free: 6.836 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005147/0.5335, allocations: 2.834 MB / 0.4947 GB, free: 3.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.5335, allocations: 0.75 kB / 0.4947 GB, free: 3.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002969/0.5365, allocations: 1.934 MB / 0.4966 GB, free: 1.996 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/0.5392, allocations: 0.5806 MB / 0.4972 GB, free: 1.426 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.5502, allocations: 7.064 MB / 0.5041 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0025/0.5527, allocations: 2.616 MB / 0.5066 GB, free: 7.691 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001683/0.5544, allocations: 0.4967 MB / 0.5071 GB, free: 7.191 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004698/0.5549, allocations: 171.4 kB / 0.5073 GB, free: 7.023 MB / 430.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5549, allocations: 4 kB / 0.5073 GB, free: 7.02 MB / 430.1 MB Notification: Performance of Templates: time 0.2028/0.7578, allocations: 34.93 MB / 0.5414 GB, free: 147.7 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches