Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 115.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 210.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 63.89 kB / 359.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2576, allocations: 50.54 MB / 410 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.0153/0.2729, allocations: 14.26 MB / 424.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.2835, allocations: 5.351 MB / 429.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002814/0.2864, allocations: 79.69 kB / 429.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003865/0.2903, allocations: 1.06 MB / 430.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005311/0.2957, allocations: 1.421 MB / 432.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003213/0.2989, allocations: 1.031 MB / 433.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006572/0.3055, allocations: 4.353 MB / 437.5 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005453/0.311, allocations: 3.359 MB / 440.9 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003475/0.3145, allocations: 2.029 MB / 442.9 MB, free: 404 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004251/0.3188, allocations: 2.406 MB / 445.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001642/0.3204, allocations: 0.5312 MB / 445.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002776/0.3232, allocations: 0.9251 MB / 446.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001898/0.3252, allocations: 1.356 MB / 448.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003872/0.3291, allocations: 2.36 MB / 450.5 MB, free: 8.793 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009711/0.3388, allocations: 7.401 MB / 457.9 MB, free: 1.371 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.3388, allocations: 0 / 457.9 MB, free: 1.371 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3389, allocations: 3.938 kB / 457.9 MB, free: 1.367 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002464/0.3391, allocations: 0 / 457.9 MB, free: 1.367 MB / 366.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.01438/0.3535, allocations: 5.031 MB / 462.9 MB, free: 12.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3536, allocations: 12.03 kB / 462.9 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005323/0.3589, allocations: 0.9092 MB / 463.9 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006301/0.3652, allocations: 2.811 MB / 466.7 MB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002349/0.3655, allocations: 250.7 kB / 466.9 MB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009993/0.3665, allocations: 335.9 kB / 467.2 MB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009377/0.3759, allocations: 4.551 MB / 471.8 MB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000105/0.376, allocations: 0 / 471.8 MB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006102/0.3767, allocations: 136 kB / 471.9 MB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001782/0.3769, allocations: 166.6 kB / 472.1 MB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007624/0.3845, allocations: 3.915 MB / 476 MB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0235/0.408, allocations: 13.99 MB / 490 MB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007967/0.416, allocations: 6.967 MB / 497 MB, free: 8.984 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003255/0.4193, allocations: 1.727 MB / 498.7 MB, free: 7.258 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008095/0.4274, allocations: 4.479 MB / 0.4914 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.03e-05/0.4275, allocations: 47.88 kB / 0.4914 GB, free: 2.582 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 4.749e-06/0.4275, allocations: 4 kB / 0.4914 GB, free: 2.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.01721/0.4448, allocations: 7.78 MB / 0.499 GB, free: 10.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/0.4449, allocations: 69.41 kB / 0.4991 GB, free: 10.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004118/0.449, allocations: 2.657 MB / 0.5017 GB, free: 7.898 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002325/0.4492, allocations: 57.7 kB / 0.5017 GB, free: 7.836 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001227/0.4505, allocations: 1.631 MB / 0.5033 GB, free: 6.184 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006153/0.4511, allocations: 0.6237 MB / 0.5039 GB, free: 5.551 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006084/0.4517, allocations: 339.4 kB / 0.5043 GB, free: 5.215 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.4518, allocations: 309.1 kB / 0.5046 GB, free: 4.91 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00164/0.4535, allocations: 0.9019 MB / 0.5054 GB, free: 4.008 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001921/0.4554, allocations: 1.31 MB / 0.5067 GB, free: 2.547 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003705/0.4591, allocations: 2.351 MB / 0.509 GB, free: 52 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/0.4592, allocations: 4 kB / 0.509 GB, free: 48 kB / 430.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005972/0.4651, allocations: 3.072 MB / 0.512 GB, free: 12.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.287e-05/0.4652, allocations: 15.94 kB / 0.512 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/0.4652, allocations: 8 kB / 0.512 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001551/0.4668, allocations: 0.5597 MB / 0.5126 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001875/0.4687, allocations: 427.3 kB / 0.513 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/0.4787, allocations: 7.6 MB / 0.5204 GB, free: 4.074 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.4805, allocations: 87.91 kB / 0.5205 GB, free: 3.988 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/0.4809, allocations: 75.98 kB / 0.5206 GB, free: 3.914 MB / 446.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.002253/0.4832, allocations: 1.176 MB / 0.5217 GB, free: 2.727 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006642/0.4838, allocations: 252.9 kB / 0.522 GB, free: 2.477 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005945/0.4898, allocations: 2.89 MB / 0.5248 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-05/0.4899, allocations: 20 kB / 0.5248 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.716e-05/0.4899, allocations: 8 kB / 0.5248 GB, free: 15.53 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.333e-05/0.4899, allocations: 11.95 kB / 0.5248 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/0.5027, allocations: 6.349 MB / 0.531 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.5028, allocations: 0 / 0.531 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/0.5042, allocations: 279.7 kB / 0.5313 GB, free: 8.809 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001754/0.5059, allocations: 0.6239 MB / 0.5319 GB, free: 8.172 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002139/0.5062, allocations: 47.98 kB / 0.5319 GB, free: 8.125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2188/0.725, allocations: 11.43 MB / 0.5431 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.725, allocations: 3.109 kB / 0.5431 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006705/0.7317, allocations: 4.172 MB / 0.5472 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/0.7328, allocations: 0.5398 MB / 0.5477 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002896/0.7331, allocations: 39.88 kB / 0.5478 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.7342, allocations: 74.16 kB / 0.5478 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003505/0.7345, allocations: 137.7 kB / 0.548 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.7346, allocations: 56.88 kB / 0.548 GB, free: 119.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002/0.7366, allocations: 1.873 MB / 0.5498 GB, free: 118.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7367, allocations: 0 / 0.5498 GB, free: 118.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002084/0.7387, allocations: 0.6891 MB / 0.5505 GB, free: 118.5 MB / 462.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.0009946/0.7397, allocations: 442.7 kB / 0.5509 GB, free: 118.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004225/0.744, allocations: 2.843 MB / 0.5537 GB, free: 117.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.744, allocations: 3.719 kB / 0.5537 GB, free: 117.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002361/0.7464, allocations: 1.924 MB / 0.5556 GB, free: 116 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/0.7488, allocations: 0.5914 MB / 0.5562 GB, free: 115.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009474/0.7583, allocations: 7.076 MB / 0.5631 GB, free: 110.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001679/0.7601, allocations: 2.582 MB / 0.5656 GB, free: 108.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007613/0.7608, allocations: 194.8 kB / 0.5658 GB, free: 108.5 MB / 462.1 MB Notification: Performance of SimCode: time 8.32e-07/0.7608, allocations: 0 / 0.5658 GB, free: 108.5 MB / 462.1 MB Notification: Performance of Templates: time 0.09125/0.8521, allocations: 101.4 MB / 0.6648 GB, free: 7.492 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches