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.001319/0.00132, allocations: 111 kB / 17.74 MB, free: 5.34 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.001451/0.001451, allocations: 188.4 kB / 18.67 MB, free: 4.418 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.306/1.306, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009691/0.0009691, allocations: 47.92 kB / 352 MB, free: 3.207 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2415, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01416/0.2557, allocations: 13.63 MB / 415.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009073/0.2649, allocations: 4.953 MB / 420 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00242/0.2673, allocations: 79.69 kB / 420.1 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003283/0.2706, allocations: 1.033 MB / 421.1 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00445/0.2751, allocations: 1.409 MB / 422.6 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002433/0.2776, allocations: 0.967 MB / 423.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005172/0.2828, allocations: 4.301 MB / 427.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003849/0.2867, allocations: 3.348 MB / 431.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002767/0.2895, allocations: 2.017 MB / 433.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003238/0.2927, allocations: 2.269 MB / 435.5 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009902/0.2937, allocations: 0.5312 MB / 436 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001932/0.2957, allocations: 0.9252 MB / 436.9 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001158/0.2968, allocations: 1.375 MB / 438.3 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002605/0.2995, allocations: 2.345 MB / 440.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007213/0.3067, allocations: 7.358 MB / 448 MB, free: 10.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.3067, allocations: 11.88 kB / 448 MB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3067, allocations: 0 / 448 MB, free: 10.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001667/0.3069, allocations: 0 / 448 MB, free: 10.07 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.01242/0.3193, allocations: 4.98 MB / 453 MB, free: 5.008 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.3194, allocations: 8.031 kB / 453 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004716/0.3241, allocations: 0.8819 MB / 453.9 MB, free: 4.113 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005204/0.3294, allocations: 2.763 MB / 456.6 MB, free: 1.273 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002148/0.3296, allocations: 250.6 kB / 456.9 MB, free: 1.027 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009053/0.3305, allocations: 343.8 kB / 457.2 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008859/0.3394, allocations: 4.547 MB / 461.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.728e-05/0.3395, allocations: 0 / 461.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003389/0.3398, allocations: 140 kB / 461.9 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000161/0.34, allocations: 158.7 kB / 462.1 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007502/0.3475, allocations: 3.915 MB / 466 MB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02387/0.3714, allocations: 13.99 MB / 480 MB, free: 9.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007856/0.3793, allocations: 6.971 MB / 486.9 MB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003135/0.3825, allocations: 1.727 MB / 488.7 MB, free: 92 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00809/0.3906, allocations: 4.245 MB / 492.9 MB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/0.3907, allocations: 47.88 kB / 493 MB, free: 11.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 3.827e-06/0.3907, allocations: 4 kB / 493 MB, free: 11.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.01699/0.4077, allocations: 7.773 MB / 0.489 GB, free: 3.789 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.4078, allocations: 73.41 kB / 0.4891 GB, free: 3.703 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004113/0.4119, allocations: 2.62 MB / 0.4916 GB, free: 1.059 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002154/0.4122, allocations: 57.7 kB / 0.4917 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001161/0.4133, allocations: 1.611 MB / 0.4932 GB, free: 15.36 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005611/0.4139, allocations: 0.6315 MB / 0.4939 GB, free: 14.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006185/0.4145, allocations: 335.3 kB / 0.4942 GB, free: 14.39 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.437e-05/0.4146, allocations: 309.1 kB / 0.4945 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/0.4162, allocations: 0.9057 MB / 0.4954 GB, free: 13.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001822/0.4181, allocations: 1.306 MB / 0.4966 GB, free: 11.72 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003533/0.4216, allocations: 2.355 MB / 0.4989 GB, free: 9.219 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/0.4216, allocations: 7.938 kB / 0.4989 GB, free: 9.211 MB / 430.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005819/0.4275, allocations: 3.065 MB / 0.5019 GB, free: 6.129 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.4275, allocations: 8 kB / 0.5019 GB, free: 6.121 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.694e-05/0.4276, allocations: 20.23 kB / 0.502 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001589/0.4292, allocations: 0.5399 MB / 0.5025 GB, free: 5.555 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001925/0.4311, allocations: 435.3 kB / 0.5029 GB, free: 5.129 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/0.4413, allocations: 7.599 MB / 0.5103 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001923/0.4433, allocations: 88 kB / 0.5104 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003721/0.4437, allocations: 75.98 kB / 0.5105 GB, free: 13.09 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.002389/0.4461, allocations: 1.161 MB / 0.5116 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007747/0.4468, allocations: 264.9 kB / 0.5119 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00585/0.4527, allocations: 2.878 MB / 0.5147 GB, free: 8.754 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.726e-05/0.4528, allocations: 23.98 kB / 0.5147 GB, free: 8.73 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.112e-05/0.4528, allocations: 8 kB / 0.5147 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/0.4528, allocations: 11.97 kB / 0.5147 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01212/0.465, allocations: 6.329 MB / 0.5209 GB, free: 2.289 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.465, allocations: 0 / 0.5209 GB, free: 2.289 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001419/0.4665, allocations: 283.7 kB / 0.5212 GB, free: 2.012 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0018/0.4683, allocations: 0.6183 MB / 0.5218 GB, free: 1.383 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000198/0.4685, allocations: 47.95 kB / 0.5218 GB, free: 1.336 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01228/0.4808, allocations: 11.44 MB / 0.533 GB, free: 5.348 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.4808, allocations: 4.031 kB / 0.533 GB, free: 5.344 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007701/0.4885, allocations: 4.144 MB / 0.537 GB, free: 1.152 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/0.4898, allocations: 0.5447 MB / 0.5376 GB, free: 0.5859 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005755/0.4904, allocations: 39.88 kB / 0.5376 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/0.4918, allocations: 87.92 kB / 0.5377 GB, free: 472 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003443/0.4922, allocations: 141.7 kB / 0.5378 GB, free: 332 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/0.4923, allocations: 56.05 kB / 0.5379 GB, free: 276 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.2204/0.7128, allocations: 1.835 MB / 0.5397 GB, free: 128.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.81e-07/0.7128, allocations: 0.5 kB / 0.5397 GB, free: 128.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003133/0.716, allocations: 0.6941 MB / 0.5404 GB, free: 128.8 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.001172/0.7171, allocations: 446.2 kB / 0.5408 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004601/0.7218, allocations: 2.838 MB / 0.5436 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.7218, allocations: 0.875 kB / 0.5436 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002661/0.7245, allocations: 1.928 MB / 0.5454 GB, free: 127.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002583/0.7271, allocations: 0.5926 MB / 0.546 GB, free: 127 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.7371, allocations: 7.046 MB / 0.5529 GB, free: 123.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001832/0.739, allocations: 2.572 MB / 0.5554 GB, free: 122.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007538/0.7398, allocations: 184.5 kB / 0.5556 GB, free: 122.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.7398, allocations: 0 / 0.5556 GB, free: 122.3 MB / 462.1 MB Notification: Performance of Templates: time 0.0817/0.8215, allocations: 101.1 MB / 0.6543 GB, free: 22.39 MB / 462.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/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