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.001489/0.001497, allocations: 108.3 kB / 16.92 MB, free: 6.145 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.001863/0.001863, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.292/1.292, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009867/0.0009868, allocations: 52.61 kB / 300.6 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08764/0.08864, allocations: 49.45 MB / 350.1 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01418/0.1029, allocations: 13.62 MB / 363.7 MB, free: 6.703 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007954/0.1109, allocations: 4.969 MB / 368.7 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001631/0.1125, allocations: 79.69 kB / 368.7 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002688/0.1152, allocations: 1.037 MB / 369.8 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1511/0.2663, allocations: 1.396 MB / 371.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002172/0.2685, allocations: 0.9734 MB / 372.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004613/0.2732, allocations: 4.272 MB / 376.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003307/0.2765, allocations: 3.349 MB / 379.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00273/0.2792, allocations: 1.998 MB / 381.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002898/0.2821, allocations: 2.316 MB / 384.1 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007249/0.2829, allocations: 0.5349 MB / 384.6 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0018/0.2847, allocations: 0.9185 MB / 385.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009741/0.2857, allocations: 1.327 MB / 386.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001993/0.2877, allocations: 2.356 MB / 389.2 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004997/0.2927, allocations: 7.308 MB / 396.5 MB, free: 1.578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2927, allocations: 0 / 396.5 MB, free: 1.578 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2927, allocations: 0 / 396.5 MB, free: 1.578 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.22e-05/0.2928, allocations: 0 / 396.5 MB, free: 1.578 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.01012/0.3029, allocations: 4.975 MB / 401.5 MB, free: 14.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.303, allocations: 8.031 kB / 401.5 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004212/0.3072, allocations: 0.8845 MB / 402.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004284/0.3115, allocations: 2.709 MB / 405.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001987/0.3117, allocations: 254.1 kB / 405.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005741/0.3123, allocations: 339.8 kB / 405.7 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008605/0.3209, allocations: 4.549 MB / 410.2 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.488e-05/0.321, allocations: 7.984 kB / 410.2 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003794/0.3214, allocations: 139 kB / 410.4 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001782/0.3216, allocations: 154.7 kB / 410.5 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007103/0.3287, allocations: 3.914 MB / 414.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02406/0.3528, allocations: 14.17 MB / 428.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007477/0.3603, allocations: 6.972 MB / 435.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002838/0.3631, allocations: 1.688 MB / 437.3 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007261/0.3704, allocations: 4.249 MB / 441.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.3705, allocations: 47.88 kB / 441.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 3.667e-06/0.3705, allocations: 0 / 441.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01732/0.3878, allocations: 7.775 MB / 449.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/0.3879, allocations: 73.41 kB / 449.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004538/0.3925, allocations: 2.623 MB / 452 MB, free: 10.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001617/0.3926, allocations: 57.7 kB / 452.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00127/0.3939, allocations: 1.614 MB / 453.7 MB, free: 8.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005833/0.3945, allocations: 0.6241 MB / 454.3 MB, free: 8.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006159/0.3951, allocations: 331.3 kB / 454.7 MB, free: 7.871 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.3953, allocations: 317.1 kB / 455 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001703/0.397, allocations: 0.9019 MB / 455.9 MB, free: 6.656 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001821/0.3988, allocations: 1.31 MB / 457.2 MB, free: 5.195 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003597/0.4024, allocations: 2.35 MB / 459.5 MB, free: 2.703 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.4024, allocations: 8 kB / 459.5 MB, free: 2.695 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00568/0.4081, allocations: 3.07 MB / 462.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.4082, allocations: 8 kB / 462.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.46e-05/0.4082, allocations: 12 kB / 462.6 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/0.4097, allocations: 0.5519 MB / 463.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001743/0.4115, allocations: 427.3 kB / 463.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009338/0.4208, allocations: 7.616 MB / 471.2 MB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001881/0.4228, allocations: 84 kB / 471.3 MB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003069/0.4231, allocations: 83.92 kB / 471.4 MB, free: 6.57 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.002255/0.4254, allocations: 1.157 MB / 472.5 MB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006959/0.4261, allocations: 260.7 kB / 472.8 MB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005599/0.4317, allocations: 2.889 MB / 475.7 MB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.58e-05/0.4317, allocations: 20 kB / 475.7 MB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.526e-05/0.4318, allocations: 8 kB / 475.7 MB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-05/0.4318, allocations: 7.969 kB / 475.7 MB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/0.444, allocations: 6.333 MB / 482 MB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.444, allocations: 0 / 482 MB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/0.4454, allocations: 283.7 kB / 482.3 MB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001689/0.4471, allocations: 0.6206 MB / 482.9 MB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001509/0.4473, allocations: 47.97 kB / 483 MB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01217/0.4595, allocations: 11.45 MB / 494.4 MB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.4595, allocations: 7.969 kB / 494.4 MB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007982/0.4675, allocations: 4.153 MB / 498.6 MB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.4688, allocations: 0.5408 MB / 499.1 MB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006088/0.4695, allocations: 36 kB / 499.2 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/0.4709, allocations: 91.86 kB / 499.3 MB, free: 9.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003513/0.4713, allocations: 133.8 kB / 499.4 MB, free: 9.848 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/0.4715, allocations: 51.98 kB / 499.4 MB, free: 9.797 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003088/0.4746, allocations: 1.842 MB / 0.4895 GB, free: 7.941 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4746, allocations: 0 / 0.4895 GB, free: 7.941 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002612/0.4772, allocations: 0.6915 MB / 0.4902 GB, free: 7.25 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.001109/0.4783, allocations: 457.3 kB / 0.4907 GB, free: 6.938 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007503/0.4858, allocations: 3.434 MB / 0.494 GB, free: 3.484 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.4858, allocations: 0 / 0.494 GB, free: 3.484 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003002/0.4888, allocations: 1.939 MB / 0.4959 GB, free: 1.496 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/0.4917, allocations: 0.5765 MB / 0.4965 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01254/0.5042, allocations: 7.125 MB / 0.5034 GB, free: 9.777 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002921/0.5072, allocations: 2.635 MB / 0.506 GB, free: 7.117 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001987/0.5092, allocations: 0.5083 MB / 0.5065 GB, free: 6.605 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005905/0.5098, allocations: 167.4 kB / 0.5066 GB, free: 6.441 MB / 430.1 MB Notification: Performance of SimCode: time 3.467e-06/0.5098, allocations: 0 / 0.5066 GB, free: 6.441 MB / 430.1 MB Notification: Performance of Templates: time 0.2187/0.7285, allocations: 37.17 MB / 0.5429 GB, free: 139.6 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 -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/jenkins/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/jenkins/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