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_Initialize.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_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|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.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|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.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|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.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|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.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001126/0.001126, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.33/1.33, allocations: 223.3 MB / 241.2 MB, free: 5.191 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002725/0.0002725, allocations: 10.28 kB / 300.8 MB, free: 5.574 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.09016, allocations: 50.42 MB / 351.3 MB, free: 11.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.01182/0.102, allocations: 11.33 MB / 362.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0068/0.1088, allocations: 3.946 MB / 366.5 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001169/0.11, allocations: 67.75 kB / 366.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00181/0.1119, allocations: 0.7302 MB / 367.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002668/0.1145, allocations: 1.069 MB / 368.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001449/0.116, allocations: 0.577 MB / 369 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004359/0.1204, allocations: 4.012 MB / 373 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002704/0.1231, allocations: 2.221 MB / 375.2 MB, free: 3.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001827/0.1249, allocations: 1.28 MB / 376.5 MB, free: 1.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001962/0.1269, allocations: 1.642 MB / 378.1 MB, free: 336 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003177/0.1272, allocations: 208 kB / 378.3 MB, free: 128 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009625/0.1282, allocations: 391.8 kB / 378.7 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006971/0.1289, allocations: 0.7707 MB / 379.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007349/0.1297, allocations: 0.7343 MB / 380.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004928/0.1346, allocations: 5.536 MB / 385.8 MB, free: 8.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1346, allocations: 0 / 385.8 MB, free: 8.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1346, allocations: 0 / 385.8 MB, free: 8.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001327/0.1348, allocations: 4 kB / 385.8 MB, free: 8.672 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.00905/0.1438, allocations: 3.766 MB / 389.5 MB, free: 4.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.1439, allocations: 8.031 kB / 389.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004467/0.1483, allocations: 0.8154 MB / 390.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004402/0.1528, allocations: 2.299 MB / 392.6 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/0.153, allocations: 238.2 kB / 392.9 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000639/0.1536, allocations: 311.9 kB / 393.2 MB, free: 1.109 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007844/0.1615, allocations: 4.238 MB / 397.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.184e-05/0.1616, allocations: 7.891 kB / 397.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002931/0.1619, allocations: 132 kB / 397.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001317/0.162, allocations: 146.2 kB / 397.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006625/0.1686, allocations: 3.647 MB / 401.4 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02079/0.1894, allocations: 13.56 MB / 414.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006238/0.1957, allocations: 6.876 MB / 421.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002341/0.1981, allocations: 1.421 MB / 423.2 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1721/0.3702, allocations: 3.641 MB / 426.9 MB, free: 60.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.3703, allocations: 46.88 kB / 426.9 MB, free: 60.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=124): time 3.075e-06/0.3703, allocations: 0 / 426.9 MB, free: 60.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=144): time 0.01222/0.3825, allocations: 6.74 MB / 433.6 MB, free: 58.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/0.3826, allocations: 71.5 kB / 433.7 MB, free: 58.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002573/0.3851, allocations: 1.838 MB / 435.5 MB, free: 58.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.3852, allocations: 51.39 kB / 435.6 MB, free: 58.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007846/0.386, allocations: 1.423 MB / 437 MB, free: 57.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/0.3863, allocations: 498.2 kB / 437.5 MB, free: 57.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.557e-05/0.3864, allocations: 33.81 kB / 437.5 MB, free: 57.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.353e-05/0.3865, allocations: 379.1 kB / 437.9 MB, free: 57.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.3876, allocations: 0.7616 MB / 438.7 MB, free: 57.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.3888, allocations: 1.226 MB / 439.9 MB, free: 56.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.3901, allocations: 0.9717 MB / 440.9 MB, free: 55.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.3901, allocations: 4.281 kB / 440.9 MB, free: 55.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003606/0.3937, allocations: 2.67 MB / 443.5 MB, free: 54.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.3938, allocations: 11.81 kB / 443.6 MB, free: 54.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.3938, allocations: 11.81 kB / 443.6 MB, free: 54.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.3949, allocations: 0.4966 MB / 444.1 MB, free: 54.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.3962, allocations: 389.1 kB / 444.4 MB, free: 54.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006098/0.4023, allocations: 6.39 MB / 450.8 MB, free: 49.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.4036, allocations: 87.83 kB / 450.9 MB, free: 49.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/0.4037, allocations: 74.45 kB / 451 MB, free: 49.88 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(7,61.2%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001618/0.4054, allocations: 1.054 MB / 452 MB, free: 49.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002277/0.4056, allocations: 193.4 kB / 452.2 MB, free: 49.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003385/0.409, allocations: 2.504 MB / 454.7 MB, free: 47.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.409, allocations: 14.53 kB / 454.7 MB, free: 47.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.409, allocations: 9.188 kB / 454.8 MB, free: 47.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.409, allocations: 12.53 kB / 454.8 MB, free: 47.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006325/0.4154, allocations: 5.535 MB / 460.3 MB, free: 42.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.4154, allocations: 0 / 460.3 MB, free: 42.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008798/0.4163, allocations: 227.7 kB / 460.5 MB, free: 42.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/0.4173, allocations: 0.4908 MB / 461 MB, free: 41.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.914e-05/0.4174, allocations: 32 kB / 461 MB, free: 41.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007276/0.4247, allocations: 10.47 MB / 471.5 MB, free: 30.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4247, allocations: 0 / 471.5 MB, free: 30.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004359/0.4291, allocations: 3.575 MB / 475.1 MB, free: 27.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006702/0.4297, allocations: 460.5 kB / 475.5 MB, free: 26.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002286/0.43, allocations: 36 kB / 475.6 MB, free: 26.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008031/0.4308, allocations: 63.95 kB / 475.6 MB, free: 26.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/0.431, allocations: 125 kB / 475.8 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.397e-05/0.4311, allocations: 36 kB / 475.8 MB, free: 26.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001467/0.4326, allocations: 1.27 MB / 477.1 MB, free: 25.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4326, allocations: 4 kB / 477.1 MB, free: 25.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001821/0.4344, allocations: 0.5809 MB / 477.7 MB, free: 24.61 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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) * 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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002578/0.4347, allocations: 161 kB / 477.8 MB, free: 24.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003182/0.4378, allocations: 2.398 MB / 480.2 MB, free: 22.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4379, allocations: 0 / 480.2 MB, free: 22.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001981/0.4398, allocations: 1.732 MB / 481.9 MB, free: 20.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.4417, allocations: 0.5012 MB / 482.4 MB, free: 19.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008/0.4497, allocations: 7.135 MB / 489.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00148/0.4512, allocations: 2.366 MB / 491.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001248/0.4525, allocations: 420.8 kB / 492.4 MB, free: 9.754 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003229/0.4528, allocations: 131.3 kB / 492.5 MB, free: 9.625 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4528, allocations: 0 / 492.5 MB, free: 9.625 MB / 350.1 MB Notification: Performance of Templates: time 0.04324/0.4961, allocations: 28.65 MB / 0.5089 GB, free: 13.26 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches