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.00102/0.00102, allocations: 114.7 kB / 16.51 MB, free: 6.66 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.001007/0.001007, allocations: 198.4 kB / 17.43 MB, free: 6.035 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.311/1.311, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.001051, allocations: 60.05 kB / 300 MB, free: 6.324 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08121/0.08227, allocations: 49.44 MB / 349.4 MB, free: 4.879 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.01317/0.09547, allocations: 12.75 MB / 362.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006996/0.1025, allocations: 4.217 MB / 366.4 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001842/0.1044, allocations: 71.75 kB / 366.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002913/0.1073, allocations: 0.8591 MB / 367.3 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003883/0.1112, allocations: 1.185 MB / 368.5 MB, free: 1.703 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001958/0.1132, allocations: 0.7647 MB / 369.2 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1614/0.2746, allocations: 4.308 MB / 373.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003094/0.2777, allocations: 2.698 MB / 376.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002176/0.2799, allocations: 1.491 MB / 377.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002174/0.2821, allocations: 1.949 MB / 379.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005235/0.2827, allocations: 297.2 kB / 380 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001247/0.2839, allocations: 0.4991 MB / 380.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007754/0.2847, allocations: 0.906 MB / 381.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001779/0.2865, allocations: 1.887 MB / 383.3 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00505/0.2915, allocations: 6.531 MB / 389.8 MB, free: 5.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2916, allocations: 8 kB / 389.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2916, allocations: 0 / 389.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001128/0.2917, allocations: 4 kB / 389.8 MB, free: 5.445 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.009481/0.3012, allocations: 4.381 MB / 394.2 MB, free: 2.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.3012, allocations: 9.469 kB / 394.2 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004038/0.3053, allocations: 0.8175 MB / 395 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003474/0.3088, allocations: 2.361 MB / 397.4 MB, free: 492 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.3089, allocations: 236 kB / 397.6 MB, free: 384 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004236/0.3093, allocations: 317.1 kB / 397.9 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006977/0.3163, allocations: 4.259 MB / 402.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.935e-05/0.3164, allocations: 7.375 kB / 402.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000292/0.3167, allocations: 132 kB / 402.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001255/0.3168, allocations: 142.2 kB / 402.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005855/0.3227, allocations: 3.663 MB / 406.1 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01905/0.3418, allocations: 13.48 MB / 419.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006411/0.3482, allocations: 6.873 MB / 426.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002485/0.3507, allocations: 1.412 MB / 427.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006485/0.3572, allocations: 3.635 MB / 431.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.071e-05/0.3573, allocations: 51.56 kB / 431.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=124): time 2.765e-06/0.3573, allocations: 0 / 431.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=144): time 0.01352/0.3708, allocations: 6.645 MB / 438.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.3709, allocations: 64.72 kB / 438.3 MB, free: 7.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002617/0.3736, allocations: 1.863 MB / 440.2 MB, free: 5.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.978e-05/0.3737, allocations: 57.7 kB / 440.2 MB, free: 5.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009081/0.3746, allocations: 1.412 MB / 441.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003644/0.375, allocations: 0.4994 MB / 442.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004533/0.3754, allocations: 299.3 kB / 442.4 MB, free: 3.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.63e-05/0.3755, allocations: 301.1 kB / 442.7 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/0.3767, allocations: 0.7652 MB / 443.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.3781, allocations: 1.223 MB / 444.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002736/0.3809, allocations: 2.107 MB / 446.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.3809, allocations: 4 kB / 446.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004391/0.3853, allocations: 2.661 MB / 449.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.3853, allocations: 15.94 kB / 449.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.218e-05/0.3854, allocations: 19.94 kB / 449.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.3867, allocations: 0.5022 MB / 450 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/0.3881, allocations: 389.8 kB / 450.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007805/0.3959, allocations: 6.399 MB / 456.8 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.3975, allocations: 71.95 kB / 456.9 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/0.3976, allocations: 71.98 kB / 456.9 MB, free: 4.695 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.001928/0.3996, allocations: 1.044 MB / 458 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004709/0.4001, allocations: 201.5 kB / 458.2 MB, free: 3.441 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004441/0.4045, allocations: 2.5 MB / 460.7 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.4045, allocations: 16 kB / 460.7 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/0.4046, allocations: 8 kB / 460.7 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.4046, allocations: 7.969 kB / 460.7 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009367/0.414, allocations: 5.533 MB / 466.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.414, allocations: 4 kB / 466.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009927/0.415, allocations: 223.9 kB / 466.4 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001302/0.4163, allocations: 497.5 kB / 466.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/0.4164, allocations: 31.98 kB / 467 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009888/0.4263, allocations: 10.49 MB / 477.5 MB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4264, allocations: 0 / 477.5 MB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00566/0.432, allocations: 3.561 MB / 481 MB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001129/0.4332, allocations: 458.5 kB / 481.5 MB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005515/0.4337, allocations: 31.94 kB / 481.5 MB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/0.4349, allocations: 75.94 kB / 481.6 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002874/0.4352, allocations: 109.2 kB / 481.7 MB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.4353, allocations: 39.98 kB / 481.7 MB, free: 10.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002297/0.4376, allocations: 1.289 MB / 483 MB, free: 9.668 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4377, allocations: 0 / 483 MB, free: 9.668 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002378/0.44, allocations: 0.582 MB / 483.6 MB, free: 9.086 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.0003736/0.4404, allocations: 163.1 kB / 483.7 MB, free: 8.922 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004069/0.4445, allocations: 2.395 MB / 486.1 MB, free: 6.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.4445, allocations: 288 / 486.1 MB, free: 6.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002543/0.4471, allocations: 1.736 MB / 487.9 MB, free: 4.699 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002693/0.4498, allocations: 0.4918 MB / 488.4 MB, free: 4.215 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/0.4613, allocations: 7.316 MB / 495.7 MB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003064/0.4644, allocations: 2.382 MB / 498.1 MB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001793/0.4662, allocations: 412.8 kB / 498.5 MB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004796/0.4667, allocations: 131.4 kB / 498.6 MB, free: 9.914 MB / 414.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4667, allocations: 0 / 498.6 MB, free: 9.914 MB / 414.1 MB Notification: Performance of Templates: time 0.05528/0.522, allocations: 29.81 MB / 0.516 GB, free: 12.41 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/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