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.000848/0.000848, allocations: 91.3 kB / 17.3 MB, free: 6.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.0011/0.0011, allocations: 178.5 kB / 18.2 MB, free: 5.512 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.419/1.419, allocations: 205.4 MB / 224.4 MB, free: 13.09 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.0004362/0.0004363, allocations: 8 kB / 281.4 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08766/0.0881, allocations: 47.58 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01319/0.1013, allocations: 12.05 MB / 341 MB, free: 7.645 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009398/0.1108, allocations: 4.191 MB / 345.2 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002702/0.1136, allocations: 59.75 kB / 345.3 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00348/0.1171, allocations: 0.8512 MB / 346.1 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004813/0.1219, allocations: 1.162 MB / 347.3 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002869/0.1248, allocations: 0.7681 MB / 348.1 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006209/0.131, allocations: 4.347 MB / 352.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00421/0.1353, allocations: 2.626 MB / 355 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00228/0.1376, allocations: 1.311 MB / 356.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002799/0.1404, allocations: 1.715 MB / 358 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007786/0.1412, allocations: 208 kB / 358.3 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001575/0.1428, allocations: 415.8 kB / 358.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001059/0.1439, allocations: 0.7821 MB / 359.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002198/0.1461, allocations: 1.762 MB / 361.2 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005657/0.1517, allocations: 6.311 MB / 367.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1518, allocations: 0 / 367.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1518, allocations: 4 kB / 367.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001346/0.1519, allocations: 0 / 367.5 MB, free: 12.98 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.009451/0.1614, allocations: 3.716 MB / 371.2 MB, free: 9.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.1614, allocations: 8.031 kB / 371.2 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00464/0.1661, allocations: 0.8163 MB / 372.1 MB, free: 8.359 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004214/0.1703, allocations: 2.26 MB / 374.3 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001831/0.1705, allocations: 234.6 kB / 374.5 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005963/0.1711, allocations: 320 kB / 374.9 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007881/0.179, allocations: 4.262 MB / 379.1 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.842e-05/0.1791, allocations: 0 / 379.1 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002981/0.1794, allocations: 135.9 kB / 379.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001473/0.1796, allocations: 146.2 kB / 379.4 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.174/0.3536, allocations: 3.662 MB / 383.1 MB, free: 32.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02317/0.3768, allocations: 13.57 MB / 396.6 MB, free: 27.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005277/0.3821, allocations: 6.87 MB / 403.5 MB, free: 21.6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00223/0.3843, allocations: 1.429 MB / 404.9 MB, free: 20.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005137/0.3895, allocations: 3.653 MB / 408.6 MB, free: 18.28 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.3895, allocations: 57.91 kB / 408.6 MB, free: 18.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=124): time 2.685e-06/0.3895, allocations: 0 / 408.6 MB, free: 18.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=144): time 0.01202/0.4016, allocations: 6.682 MB / 415.3 MB, free: 13.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.934e-05/0.4016, allocations: 68.7 kB / 415.4 MB, free: 13.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002245/0.4039, allocations: 1.859 MB / 417.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.404, allocations: 49.7 kB / 417.3 MB, free: 11.78 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006028/0.4046, allocations: 1.419 MB / 418.7 MB, free: 10.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002675/0.4049, allocations: 0.4942 MB / 419.2 MB, free: 9.863 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.4051, allocations: 137.6 kB / 419.3 MB, free: 9.723 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.014e-05/0.4051, allocations: 308.8 kB / 419.6 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/0.4061, allocations: 0.7652 MB / 420.4 MB, free: 8.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001188/0.4073, allocations: 1.238 MB / 421.6 MB, free: 7.234 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002269/0.4096, allocations: 2.111 MB / 423.8 MB, free: 4.988 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.702e-06/0.4096, allocations: 4.766 kB / 423.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003841/0.4135, allocations: 2.683 MB / 426.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/0.4135, allocations: 12 kB / 426.5 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.4136, allocations: 12 kB / 426.5 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/0.4148, allocations: 0.4975 MB / 427 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.4162, allocations: 392.6 kB / 427.3 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007605/0.4238, allocations: 6.409 MB / 433.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/0.4258, allocations: 80.03 kB / 433.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001976/0.426, allocations: 75.98 kB / 433.9 MB, free: 10.7 MB / 334.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.002454/0.4285, allocations: 1.05 MB / 435 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005043/0.429, allocations: 193.7 kB / 435.1 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004914/0.4339, allocations: 2.519 MB / 437.7 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-05/0.434, allocations: 12 kB / 437.7 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.434, allocations: 8 kB / 437.7 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.434, allocations: 11.97 kB / 437.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008786/0.4428, allocations: 5.544 MB / 443.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.4428, allocations: 0 / 443.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.4438, allocations: 226.6 kB / 443.5 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.4453, allocations: 0.4993 MB / 444 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.4454, allocations: 31.98 kB / 444 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01042/0.4558, allocations: 10.47 MB / 454.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.4559, allocations: 3.938 kB / 454.5 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005869/0.4617, allocations: 3.584 MB / 458.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009942/0.4628, allocations: 462.6 kB / 458.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002507/0.463, allocations: 28 kB / 458.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009373/0.464, allocations: 82.39 kB / 458.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003095/0.4643, allocations: 112.8 kB / 458.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.597e-05/0.4644, allocations: 43.98 kB / 458.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001997/0.4664, allocations: 1.289 MB / 460.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4664, allocations: 0 / 460.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00204/0.4684, allocations: 0.5848 MB / 460.6 MB, free: 15.22 MB / 366.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.0003652/0.4688, allocations: 168 kB / 460.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00423/0.4731, allocations: 2.4 MB / 463.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.4731, allocations: 4 kB / 463.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002519/0.4756, allocations: 1.733 MB / 464.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002709/0.4783, allocations: 0.4955 MB / 465.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.4897, allocations: 7.449 MB / 472.9 MB, free: 2.926 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002273/0.492, allocations: 2.369 MB / 475.3 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001495/0.4936, allocations: 420.8 kB / 475.7 MB, free: 124 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003438/0.4939, allocations: 127.4 kB / 475.8 MB, free: 0 / 366.1 MB Notification: Performance of SimCode: time 2.024e-06/0.4939, allocations: 0 / 475.8 MB, free: 0 / 366.1 MB Notification: Performance of Templates: time 0.05161/0.5455, allocations: 29.36 MB / 0.4933 GB, free: 2.664 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Initialize/AIMC_Initialize.csv","../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