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.001795/0.001802, allocations: 110.3 kB / 17.16 MB, free: 6.082 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.002305/0.002305, allocations: 194.9 kB / 18.08 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 2.014/2.014, allocations: 222.9 MB / 241.7 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 50.22 kB / 300.6 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1496, allocations: 49.43 MB / 350.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.02432/0.174, allocations: 12.74 MB / 362.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01403/0.1881, allocations: 4.217 MB / 367 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004299/0.1925, allocations: 67.75 kB / 367.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005883/0.1984, allocations: 0.8629 MB / 368 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00794/0.2066, allocations: 1.184 MB / 369.1 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00369/0.2103, allocations: 0.7818 MB / 369.9 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2976/0.5079, allocations: 4.304 MB / 374.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006765/0.5148, allocations: 2.691 MB / 376.9 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004372/0.5192, allocations: 1.492 MB / 378.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00558/0.5248, allocations: 1.945 MB / 380.3 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001816/0.5267, allocations: 297 kB / 380.6 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003884/0.5306, allocations: 0.4982 MB / 381.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002359/0.533, allocations: 0.9123 MB / 382 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006254/0.5393, allocations: 1.883 MB / 383.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009199/0.5485, allocations: 5.709 MB / 389.6 MB, free: 5.988 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.5486, allocations: 2.188 kB / 389.6 MB, free: 5.988 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.5486, allocations: 0 / 389.6 MB, free: 5.988 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002467/0.5489, allocations: 3.469 kB / 389.6 MB, free: 5.988 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.02299/0.5719, allocations: 4.377 MB / 394 MB, free: 3.059 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.359e-05/0.572, allocations: 9.625 kB / 394 MB, free: 3.059 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009447/0.5815, allocations: 0.8162 MB / 394.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008547/0.5901, allocations: 2.36 MB / 397.2 MB, free: 1.023 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003224/0.5905, allocations: 233.1 kB / 397.4 MB, free: 0.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001784/0.5923, allocations: 318.9 kB / 397.7 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01597/0.6082, allocations: 4.263 MB / 402 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001168/0.6084, allocations: 7.906 kB / 402 MB, free: 13.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006041/0.6091, allocations: 124 kB / 402.1 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002417/0.6093, allocations: 146.2 kB / 402.3 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01355/0.6229, allocations: 3.662 MB / 405.9 MB, free: 9.992 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04645/0.6694, allocations: 13.5 MB / 419.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01119/0.6807, allocations: 6.861 MB / 426.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004456/0.6852, allocations: 1.414 MB / 427.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01157/0.6968, allocations: 3.641 MB / 431.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.763e-05/0.6969, allocations: 47.56 kB / 431.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=124): time 5.18e-06/0.697, allocations: 0 / 431.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=144): time 0.02347/0.7204, allocations: 6.639 MB / 438 MB, free: 8.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.7205, allocations: 68.72 kB / 438.1 MB, free: 8.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005071/0.7256, allocations: 1.863 MB / 440 MB, free: 6.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003541/0.726, allocations: 49.7 kB / 440 MB, free: 6.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001581/0.7276, allocations: 1.417 MB / 441.4 MB, free: 5.301 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008265/0.7285, allocations: 0.4956 MB / 441.9 MB, free: 4.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008463/0.7293, allocations: 303.3 kB / 442.2 MB, free: 4.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.7295, allocations: 305.1 kB / 442.5 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002002/0.7315, allocations: 0.7613 MB / 443.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002449/0.734, allocations: 1.223 MB / 444.5 MB, free: 2.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00468/0.7387, allocations: 2.104 MB / 446.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.233e-05/0.7387, allocations: 4 kB / 446.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.008461/0.7472, allocations: 2.66 MB / 449.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.882e-05/0.7473, allocations: 14.97 kB / 449.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.768e-05/0.7474, allocations: 15.94 kB / 449.3 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002623/0.75, allocations: 0.5062 MB / 449.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003074/0.7531, allocations: 393.2 kB / 450.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01355/0.7667, allocations: 6.395 MB / 456.6 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002965/0.7698, allocations: 80.05 kB / 456.7 MB, free: 5.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004915/0.7703, allocations: 79.98 kB / 456.8 MB, free: 5.5 MB / 366.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 (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,1,100.0%), (8,30,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003999/0.7743, allocations: 1.036 MB / 457.8 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001029/0.7754, allocations: 197.6 kB / 458 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008395/0.7838, allocations: 2.515 MB / 460.5 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.638e-05/0.7839, allocations: 12 kB / 460.5 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-05/0.7839, allocations: 8 kB / 460.5 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.64e-05/0.7839, allocations: 7.969 kB / 460.5 MB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0173/0.8013, allocations: 5.533 MB / 466.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/0.8014, allocations: 192 / 466.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001671/0.8031, allocations: 227.7 kB / 466.3 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002447/0.8055, allocations: 0.4889 MB / 466.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002529/0.8058, allocations: 35.98 kB / 466.8 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01812/0.824, allocations: 10.48 MB / 477.3 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/0.824, allocations: 0 / 477.3 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01196/0.836, allocations: 3.559 MB / 480.8 MB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002548/0.8387, allocations: 458.5 kB / 481.3 MB, free: 12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001177/0.8399, allocations: 39.94 kB / 481.3 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002557/0.8425, allocations: 67.94 kB / 481.4 MB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005958/0.8431, allocations: 105.2 kB / 481.5 MB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002078/0.8434, allocations: 39.98 kB / 481.5 MB, free: 11.76 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00494/0.8483, allocations: 1.286 MB / 482.8 MB, free: 10.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8484, allocations: 0 / 482.8 MB, free: 10.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005528/0.8539, allocations: 0.582 MB / 483.4 MB, free: 9.898 MB / 398.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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007974/0.8547, allocations: 167.2 kB / 483.6 MB, free: 9.727 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008349/0.8631, allocations: 2.4 MB / 486 MB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/0.8632, allocations: 2.281 kB / 486 MB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005099/0.8683, allocations: 1.735 MB / 487.7 MB, free: 5.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006632/0.875, allocations: 497.2 kB / 488.2 MB, free: 5.023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02589/0.9009, allocations: 7.299 MB / 495.5 MB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005423/0.9064, allocations: 2.316 MB / 497.8 MB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001473/0.908, allocations: 139.4 kB / 497.9 MB, free: 11.2 MB / 414.1 MB Notification: Performance of SimCode: time 1.843e-06/0.908, allocations: 0 / 497.9 MB, free: 11.2 MB / 414.1 MB Notification: Performance of Templates: time 0.5175/1.426, allocations: 97.39 MB / 0.5814 GB, free: 114.3 MB / 446.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/jenkins1/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/jenkins1/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