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.00194/0.00194, allocations: 111.1 kB / 16.51 MB, free: 6.707 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.001748/0.001748, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.307/1.307, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009643/0.0009642, allocations: 47.86 kB / 300 MB, free: 6.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08042/0.0814, allocations: 49.45 MB / 349.4 MB, free: 4.82 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01435/0.09579, allocations: 13.46 MB / 362.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007803/0.1036, allocations: 4.934 MB / 367.8 MB, free: 2.336 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001691/0.1053, allocations: 75.69 kB / 367.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002564/0.1079, allocations: 0.9018 MB / 368.8 MB, free: 1.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003283/0.1113, allocations: 1.271 MB / 370.1 MB, free: 80 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1582/0.2694, allocations: 0.8845 MB / 370.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005379/0.2748, allocations: 4.6 MB / 375.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002997/0.2779, allocations: 2.788 MB / 378.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002198/0.2801, allocations: 1.606 MB / 379.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002519/0.2826, allocations: 2.154 MB / 382.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006162/0.2832, allocations: 316.2 kB / 382.4 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001821/0.2851, allocations: 0.7019 MB / 383.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009666/0.286, allocations: 1.084 MB / 384.2 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002644/0.2887, allocations: 2.097 MB / 386.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006171/0.2949, allocations: 7.133 MB / 393.4 MB, free: 3.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2949, allocations: 0 / 393.4 MB, free: 3.316 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2949, allocations: 0 / 393.4 MB, free: 3.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001944/0.2951, allocations: 1.125 kB / 393.4 MB, free: 3.316 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.01312/0.3082, allocations: 4.966 MB / 398.4 MB, free: 15.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.3083, allocations: 9.594 kB / 398.4 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004563/0.3129, allocations: 0.8767 MB / 399.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004793/0.3177, allocations: 2.676 MB / 402 MB, free: 13.42 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/0.3179, allocations: 246.7 kB / 402.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006047/0.3185, allocations: 346.1 kB / 402.5 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008748/0.3273, allocations: 4.543 MB / 407.1 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.5e-05/0.3274, allocations: 3.469 kB / 407.1 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003298/0.3277, allocations: 139.1 kB / 407.2 MB, free: 8.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000192/0.3279, allocations: 150.7 kB / 407.4 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007202/0.3351, allocations: 3.918 MB / 411.3 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02128/0.3564, allocations: 14.17 MB / 425.4 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00796/0.3644, allocations: 6.975 MB / 432.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00282/0.3673, allocations: 1.699 MB / 434.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007486/0.3748, allocations: 4.245 MB / 438.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.3748, allocations: 55.88 kB / 438.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 3.015e-06/0.3748, allocations: 0 / 438.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01607/0.3909, allocations: 7.767 MB / 446.2 MB, free: 56 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.391, allocations: 69.41 kB / 446.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003445/0.3944, allocations: 2.624 MB / 448.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.3946, allocations: 57.7 kB / 448.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.3957, allocations: 1.621 MB / 450.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005115/0.3962, allocations: 0.6212 MB / 451.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005631/0.3968, allocations: 331.4 kB / 451.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.3969, allocations: 305.1 kB / 451.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/0.3985, allocations: 0.9097 MB / 452.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001851/0.4004, allocations: 1.306 MB / 454 MB, free: 8.012 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003501/0.4039, allocations: 2.351 MB / 456.4 MB, free: 5.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.4039, allocations: 8 kB / 456.4 MB, free: 5.512 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005347/0.4093, allocations: 3.065 MB / 459.4 MB, free: 2.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.4093, allocations: 16.03 kB / 459.5 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.4093, allocations: 8 kB / 459.5 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001445/0.4108, allocations: 0.5494 MB / 460 MB, free: 1.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001731/0.4125, allocations: 431.3 kB / 460.4 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008823/0.4213, allocations: 6.976 MB / 467.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.423, allocations: 90.91 kB / 467.5 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000167/0.4232, allocations: 79.98 kB / 467.6 MB, free: 10.03 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.002275/0.4255, allocations: 1.157 MB / 468.7 MB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004945/0.426, allocations: 252.9 kB / 469 MB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00541/0.4314, allocations: 2.882 MB / 471.9 MB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-05/0.4314, allocations: 23.98 kB / 471.9 MB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.4315, allocations: 11.94 kB / 471.9 MB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.4315, allocations: 7.969 kB / 471.9 MB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01/0.4415, allocations: 6.34 MB / 478.2 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.4415, allocations: 0 / 478.2 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001311/0.4428, allocations: 279.6 kB / 478.5 MB, free: 15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001584/0.4444, allocations: 0.6145 MB / 479.1 MB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/0.4446, allocations: 52.03 kB / 479.2 MB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/0.4555, allocations: 10.49 MB / 489.7 MB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4555, allocations: 7.969 kB / 489.7 MB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006715/0.4622, allocations: 4.157 MB / 493.8 MB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.4633, allocations: 0.5408 MB / 494.4 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003118/0.4636, allocations: 36 kB / 494.4 MB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.4648, allocations: 87.92 kB / 494.5 MB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003357/0.4651, allocations: 137.7 kB / 494.6 MB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.4652, allocations: 51.98 kB / 494.7 MB, free: 14.24 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002675/0.4679, allocations: 1.842 MB / 496.5 MB, free: 12.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4679, allocations: 0 / 496.5 MB, free: 12.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002369/0.4703, allocations: 0.699 MB / 497.2 MB, free: 11.69 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.00102/0.4713, allocations: 451.8 kB / 497.7 MB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00472/0.4761, allocations: 2.828 MB / 0.4888 GB, free: 8.539 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.4761, allocations: 0 / 0.4888 GB, free: 8.539 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002841/0.4789, allocations: 1.935 MB / 0.4907 GB, free: 6.555 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00237/0.4813, allocations: 0.549 MB / 0.4912 GB, free: 6.008 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.4938, allocations: 8.626 MB / 0.4996 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002729/0.4965, allocations: 2.628 MB / 0.5022 GB, free: 10.71 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001999/0.4985, allocations: 0.5006 MB / 0.5027 GB, free: 10.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004943/0.499, allocations: 163.4 kB / 0.5028 GB, free: 10.04 MB / 430.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4991, allocations: 0 / 0.5028 GB, free: 10.04 MB / 430.1 MB Notification: Performance of Templates: time 0.2194/0.7184, allocations: 35.71 MB / 0.5377 GB, free: 137.4 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