Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AIMC_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.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 104.4 kB / 18.35 MB, free: 4.77 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.001287/0.001287, allocations: 191 kB / 19.29 MB, free: 3.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.258/1.258, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 43.94 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07589/0.07712, allocations: 46.63 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01403/0.09119, allocations: 12.82 MB / 341.6 MB, free: 6.859 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01062/0.1019, allocations: 4.291 MB / 345.8 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002436/0.1044, allocations: 63.75 kB / 345.9 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003661/0.1081, allocations: 0.9668 MB / 346.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005459/0.1135, allocations: 1.289 MB / 348.2 MB, free: 224 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002924/0.1165, allocations: 0.8612 MB / 349 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006952/0.1235, allocations: 4.059 MB / 353.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005336/0.1288, allocations: 3.184 MB / 356.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003392/0.1323, allocations: 1.873 MB / 358.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004074/0.1363, allocations: 2.109 MB / 360.3 MB, free: 4.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00101/0.1374, allocations: 0.5078 MB / 360.8 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001801/0.1392, allocations: 0.7146 MB / 361.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001283/0.1405, allocations: 1.145 MB / 362.6 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003023/0.1435, allocations: 2.124 MB / 364.7 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008335/0.1519, allocations: 6.734 MB / 371.5 MB, free: 8.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1519, allocations: 0 / 371.5 MB, free: 8.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1519, allocations: 0 / 371.5 MB, free: 8.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001462/0.1521, allocations: 0 / 371.5 MB, free: 8.766 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.01022/0.1623, allocations: 4.398 MB / 375.9 MB, free: 4.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.1624, allocations: 8.031 kB / 375.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00412/0.1665, allocations: 0.8085 MB / 376.7 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004182/0.1707, allocations: 2.327 MB / 379 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.1709, allocations: 234.6 kB / 379.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004529/0.1713, allocations: 320 kB / 379.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1517/0.3231, allocations: 4.256 MB / 383.8 MB, free: 48.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001551/0.3233, allocations: 2.797 kB / 383.8 MB, free: 48.1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008167/0.3241, allocations: 129.1 kB / 383.9 MB, free: 48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001838/0.3243, allocations: 145.7 kB / 384.1 MB, free: 47.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00825/0.3325, allocations: 3.654 MB / 387.7 MB, free: 46.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0221/0.3547, allocations: 13.33 MB / 401.1 MB, free: 37.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004964/0.3597, allocations: 6.861 MB / 407.9 MB, free: 31.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001967/0.3617, allocations: 1.413 MB / 409.3 MB, free: 30.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00563/0.3673, allocations: 3.623 MB / 413 MB, free: 27.72 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.3674, allocations: 51.41 kB / 413 MB, free: 27.67 MB / 318.1 MB Notification: Performance of pre-optimization done (n=124): time 3.256e-06/0.3674, allocations: 0 / 413 MB, free: 27.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=144): time 0.01191/0.3793, allocations: 6.623 MB / 419.6 MB, free: 20.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.091e-05/0.3794, allocations: 68.66 kB / 419.7 MB, free: 20.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002617/0.382, allocations: 1.863 MB / 421.6 MB, free: 18.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000118/0.3821, allocations: 56.14 kB / 421.6 MB, free: 18.88 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006749/0.3828, allocations: 1.411 MB / 423 MB, free: 17.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003182/0.3832, allocations: 0.4922 MB / 423.5 MB, free: 16.96 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004416/0.3836, allocations: 303.3 kB / 423.8 MB, free: 16.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.38e-05/0.3837, allocations: 305.1 kB / 424.1 MB, free: 16.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.3847, allocations: 0.7613 MB / 424.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/0.3859, allocations: 1.22 MB / 426.1 MB, free: 14.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002194/0.3881, allocations: 2.108 MB / 428.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.3881, allocations: 4 kB / 428.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003728/0.3919, allocations: 2.666 MB / 430.9 MB, free: 9.203 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.3919, allocations: 12 kB / 430.9 MB, free: 9.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/0.3919, allocations: 12 kB / 430.9 MB, free: 9.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0012/0.3931, allocations: 0.4984 MB / 431.4 MB, free: 8.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001344/0.3945, allocations: 387.5 kB / 431.8 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006595/0.4011, allocations: 6.924 MB / 438.7 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.4026, allocations: 75.89 kB / 438.8 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001612/0.4028, allocations: 75.98 kB / 438.9 MB, free: 0.9492 MB / 318.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%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001528/0.4043, allocations: 1.04 MB / 439.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004269/0.4047, allocations: 205.5 kB / 440.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004141/0.4089, allocations: 2.493 MB / 442.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.4089, allocations: 19.94 kB / 442.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.889e-05/0.4089, allocations: 8 kB / 442.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.409, allocations: 11.81 kB / 442.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008721/0.4177, allocations: 5.526 MB / 448.2 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.4177, allocations: 12.02 kB / 448.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009704/0.4187, allocations: 215.7 kB / 448.4 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.4199, allocations: 0.4953 MB / 448.9 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.42, allocations: 35.98 kB / 448.9 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01018/0.4302, allocations: 11.41 MB / 460.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.4303, allocations: 4.062 kB / 460.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005308/0.4356, allocations: 3.562 MB / 463.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001054/0.4366, allocations: 454.6 kB / 464.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004417/0.4371, allocations: 32 kB / 464.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.4382, allocations: 67.95 kB / 464.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002929/0.4385, allocations: 121 kB / 464.5 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.4386, allocations: 39.98 kB / 464.6 MB, free: 6.262 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002965/0.4416, allocations: 1.286 MB / 465.9 MB, free: 4.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4416, allocations: 4 kB / 465.9 MB, free: 4.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003126/0.4447, allocations: 0.5886 MB / 466.5 MB, free: 4.395 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.strayReluctance.Phi.re,aimc.stator.strayReluctance.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.0004891/0.4453, allocations: 154.9 kB / 466.6 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005002/0.4503, allocations: 2.409 MB / 469 MB, free: 1.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4503, allocations: 0 / 469 MB, free: 1.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002556/0.4528, allocations: 1.715 MB / 470.7 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002524/0.4554, allocations: 0.5113 MB / 471.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.4659, allocations: 5.919 MB / 477.2 MB, free: 9.555 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002419/0.4683, allocations: 2.366 MB / 479.5 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001461/0.4698, allocations: 416.7 kB / 479.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004411/0.4702, allocations: 131.4 kB / 480.1 MB, free: 6.617 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4703, allocations: 4 kB / 480.1 MB, free: 6.613 MB / 366.1 MB Notification: Performance of Templates: time 0.05205/0.5223, allocations: 30.93 MB / 0.499 GB, free: 7.672 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Initialize/AIMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches