Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|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.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|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.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001602/0.001602, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.706/1.706, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008566/0.0008566, allocations: 104.5 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002875/0.000288, allocations: 8 kB / 328.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2708, allocations: 47.57 MB / 375.8 MB, free: 45.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1421/0.413, allocations: 109.7 MB / 485.5 MB, free: 2.945 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003971/0.4134, allocations: 87.95 kB / 485.6 MB, free: 2.859 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4139/0.8274, allocations: 80.54 MB / 0.5528 GB, free: 63.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.8274, allocations: 4 kB / 0.5529 GB, free: 63.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002266/0.8277, allocations: 75.94 kB / 0.5529 GB, free: 63.63 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.009349/0.837, allocations: 3.521 MB / 0.5564 GB, free: 60.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.8371, allocations: 8.031 kB / 0.5564 GB, free: 60.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004553/0.8416, allocations: 0.7412 MB / 0.5571 GB, free: 59.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008423/0.8501, allocations: 3.32 MB / 0.5603 GB, free: 55.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002807/0.8504, allocations: 250.4 kB / 0.5606 GB, free: 55.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001481/0.8519, allocations: 323.8 kB / 0.5609 GB, free: 55.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01041/0.8623, allocations: 4.204 MB / 0.565 GB, free: 51.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-05/0.8625, allocations: 0 / 0.565 GB, free: 51.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003269/0.8628, allocations: 140 kB / 0.5651 GB, free: 50.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001178/0.8629, allocations: 142.4 kB / 0.5653 GB, free: 50.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005853/0.8688, allocations: 3.43 MB / 0.5686 GB, free: 47.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02096/0.8898, allocations: 13.91 MB / 0.5822 GB, free: 33.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005488/0.8953, allocations: 6.675 MB / 0.5887 GB, free: 25.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005894/0.9013, allocations: 3.394 MB / 0.592 GB, free: 22.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.9013, allocations: 47.88 kB / 0.5921 GB, free: 21.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=152): time 3.486e-06/0.9014, allocations: 0 / 0.5921 GB, free: 21.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=155): time 0.01226/0.9136, allocations: 6.463 MB / 0.5984 GB, free: 15.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.9137, allocations: 68.72 kB / 0.5985 GB, free: 15.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003096/0.9168, allocations: 1.532 MB / 0.5999 GB, free: 13.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000172/0.917, allocations: 53.7 kB / 0.6 GB, free: 13.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009917/0.918, allocations: 1.404 MB / 0.6014 GB, free: 12.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005213/0.9185, allocations: 0.5275 MB / 0.6019 GB, free: 11.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.9187, allocations: 36 kB / 0.6019 GB, free: 11.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.9189, allocations: 381.8 kB / 0.6023 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.92, allocations: 0.7184 MB / 0.603 GB, free: 10.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.9213, allocations: 1.189 MB / 0.6041 GB, free: 9.137 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.9227, allocations: 0.9431 MB / 0.6051 GB, free: 8.195 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.228e-05/0.9227, allocations: 4 kB / 0.6051 GB, free: 8.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.004076/0.9268, allocations: 2.696 MB / 0.6077 GB, free: 5.445 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.9269, allocations: 15.98 kB / 0.6077 GB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-05/0.9269, allocations: 15.95 kB / 0.6077 GB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.9279, allocations: 468.8 kB / 0.6082 GB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.9293, allocations: 371.4 kB / 0.6085 GB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009061/0.9383, allocations: 9.796 MB / 0.6181 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/0.9402, allocations: 84.05 kB / 0.6182 GB, free: 10.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003706/0.9406, allocations: 72 kB / 0.6183 GB, free: 9.961 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (189): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 7,(2,100.0%) 8,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002602/0.9432, allocations: 1.005 MB / 0.6192 GB, free: 8.945 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005654/0.9438, allocations: 193.6 kB / 0.6194 GB, free: 8.754 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004949/0.9488, allocations: 2.541 MB / 0.6219 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.9488, allocations: 16 kB / 0.6219 GB, free: 6.125 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.452e-05/0.9488, allocations: 8 kB / 0.6219 GB, free: 6.117 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.719e-05/0.9489, allocations: 19.91 kB / 0.6219 GB, free: 6.098 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/0.9625, allocations: 5.45 MB / 0.6273 GB, free: 0.5039 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.769e-05/0.9626, allocations: 4 kB / 0.6273 GB, free: 0.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.9636, allocations: 191.9 kB / 0.6274 GB, free: 320 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002059/0.9657, allocations: 0.6225 MB / 0.6281 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001991/0.9659, allocations: 35.98 kB / 0.6281 GB, free: 15.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01662/0.9826, allocations: 14.27 MB / 0.642 GB, free: 436 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.808e-06/0.9826, allocations: 7.984 kB / 0.642 GB, free: 428 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2404/1.223, allocations: 3.645 MB / 0.6456 GB, free: 90.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/1.224, allocations: 449.6 kB / 0.646 GB, free: 90.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002955/1.225, allocations: 36.84 kB / 0.6461 GB, free: 90.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009377/1.226, allocations: 73.25 kB / 0.6461 GB, free: 90.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003742/1.226, allocations: 131.3 kB / 0.6463 GB, free: 90.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.562e-05/1.226, allocations: 43.25 kB / 0.6463 GB, free: 90.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001635/1.228, allocations: 1.173 MB / 0.6474 GB, free: 90.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.228, allocations: 2.953 kB / 0.6474 GB, free: 90.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002222/1.23, allocations: 0.6434 MB / 0.6481 GB, free: 90.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 86 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(3,100.0%) 9,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005088/1.23, allocations: 371.6 kB / 0.6484 GB, free: 90.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003336/1.234, allocations: 2.651 MB / 0.651 GB, free: 89.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/1.234, allocations: 0 / 0.651 GB, free: 89.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002464/1.236, allocations: 2.008 MB / 0.653 GB, free: 88.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002477/1.239, allocations: 0.4982 MB / 0.6535 GB, free: 88.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/1.25, allocations: 7.233 MB / 0.6605 GB, free: 85.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00174/1.251, allocations: 2.375 MB / 0.6628 GB, free: 84.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00153/1.253, allocations: 390.8 kB / 0.6632 GB, free: 84.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003821/1.253, allocations: 122 kB / 0.6633 GB, free: 84.74 MB / 410.7 MB Notification: Performance of SimCode: time 2.013e-06/1.253, allocations: 0.5 kB / 0.6633 GB, free: 84.74 MB / 410.7 MB Notification: Performance of Templates: time 0.05299/1.306, allocations: 31.89 MB / 0.6945 GB, free: 81.11 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_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_Steinmetz/AIMC_Steinmetz.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches