Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.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.AIMS_Start_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc3.is.1.|aimc3.is.2.|aims3.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aims3.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aims3.rotor.zeroInductor.i0|aims3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aims3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimcM.is.1.|aimcM.is.2.|aimcM.is.3.|aimcM.is.4.|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.rotor.zeroInductor.i0|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc3.is.1.|aimc3.is.2.|aims3.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aims3.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aims3.rotor.zeroInductor.i0|aims3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aims3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimcM.is.1.|aimcM.is.2.|aimcM.is.3.|aimcM.is.4.|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.rotor.zeroInductor.i0|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001372/0.001372, allocations: 175.2 kB / 14.1 MB, free: 1.211 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.605/1.605, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008489/0.0008495, allocations: 93.91 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.311e-05/3.315e-05, allocations: 4 kB / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08453/0.08458, allocations: 47.58 MB / 370 MB, free: 1.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3514/0.436, allocations: 114.6 MB / 484.7 MB, free: 11.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.4363, allocations: 85.17 kB / 484.8 MB, free: 11.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6876/1.124, allocations: 220.4 MB / 0.6886 GB, free: 8.262 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.695e-06/1.124, allocations: 0 / 0.6886 GB, free: 8.262 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001124/1.125, allocations: 251.7 kB / 0.6888 GB, free: 8.016 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.5142/1.639, allocations: 9.567 MB / 0.6982 GB, free: 25.11 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/1.639, allocations: 9.188 kB / 0.6982 GB, free: 25.11 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01274/1.652, allocations: 2.127 MB / 0.7003 GB, free: 24.53 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02413/1.676, allocations: 8.904 MB / 0.709 GB, free: 23.88 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006965/1.677, allocations: 0.7437 MB / 0.7097 GB, free: 23.85 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0039/1.681, allocations: 0.9857 MB / 0.7107 GB, free: 23.84 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03451/1.715, allocations: 13.8 MB / 0.7241 GB, free: 22.7 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002527/1.716, allocations: 11.59 kB / 0.7241 GB, free: 22.7 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001281/1.717, allocations: 426.7 kB / 0.7245 GB, free: 22.7 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003124/1.717, allocations: 457.7 kB / 0.725 GB, free: 22.68 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02206/1.739, allocations: 11.44 MB / 0.7361 GB, free: 22.58 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09092/1.83, allocations: 44.14 MB / 0.7793 GB, free: 7.508 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03737/1.868, allocations: 24.52 MB / 0.8032 GB, free: 2.215 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01403/1.882, allocations: 4.913 MB / 0.808 GB, free: 412 kB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0371/1.919, allocations: 12.08 MB / 0.8198 GB, free: 10.6 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.062e-05/1.919, allocations: 79.17 kB / 0.8199 GB, free: 10.53 MB / 458.8 MB Notification: Performance of pre-optimization done (n=419): time 8.947e-06/1.919, allocations: 0 / 0.8199 GB, free: 10.53 MB / 458.8 MB Notification: Performance of matching and sorting (n=425): time 0.03329/1.953, allocations: 13.85 MB / 0.8334 GB, free: 3.902 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.409e-05/1.953, allocations: 96.97 kB / 0.8335 GB, free: 3.836 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008288/1.961, allocations: 4.685 MB / 0.8381 GB, free: 2.121 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008912/1.962, allocations: 100 kB / 0.8382 GB, free: 2.035 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003597/1.965, allocations: 4.433 MB / 0.8425 GB, free: 14.69 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00185/1.967, allocations: 1.418 MB / 0.8439 GB, free: 13.59 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003373/1.968, allocations: 97.78 kB / 0.844 GB, free: 13.52 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0003177/1.968, allocations: 498.1 kB / 0.8444 GB, free: 13.12 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003425/1.971, allocations: 2.261 MB / 0.8466 GB, free: 11.1 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004019/1.975, allocations: 3.407 MB / 0.85 GB, free: 7.531 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00414/1.98, allocations: 2.817 MB / 0.8527 GB, free: 5.191 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-05/1.98, allocations: 8 kB / 0.8527 GB, free: 5.184 MB / 474.8 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.0145/1.994, allocations: 7.861 MB / 0.8604 GB, free: 14.6 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.569e-05/1.994, allocations: 20 kB / 0.8604 GB, free: 14.58 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-05/1.994, allocations: 36 kB / 0.8605 GB, free: 14.55 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003687/1.998, allocations: 1.486 MB / 0.8619 GB, free: 13.33 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004647/2.003, allocations: 0.9781 MB / 0.8629 GB, free: 12.55 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3509/2.354, allocations: 26.72 MB / 0.889 GB, free: 75.49 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005664/2.359, allocations: 233.2 kB / 0.8892 GB, free: 75.49 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00125/2.361, allocations: 190.7 kB / 0.8894 GB, free: 75.49 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (526): * Single equations (assignments): 510 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 14 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,68.8%) 22,(2,100.0%) 6,(2,100.0%) 6,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001161/2.362, allocations: 397.8 kB / 0.8897 GB, free: 75.38 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001902/2.364, allocations: 0.5802 MB / 0.8903 GB, free: 75.38 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/2.377, allocations: 7.671 MB / 0.8978 GB, free: 74.62 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-05/2.377, allocations: 40.69 kB / 0.8978 GB, free: 74.62 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.233e-05/2.377, allocations: 27.34 kB / 0.8979 GB, free: 74.62 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-05/2.377, allocations: 27.53 kB / 0.8979 GB, free: 74.61 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02887/2.406, allocations: 16.35 MB / 0.9139 GB, free: 73.38 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/2.406, allocations: 3.562 kB / 0.9139 GB, free: 73.38 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001918/2.408, allocations: 462.7 kB / 0.9143 GB, free: 73.38 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004599/2.412, allocations: 2.241 MB / 0.9165 GB, free: 73.27 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003651/2.413, allocations: 100.9 kB / 0.9166 GB, free: 73.27 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03039/2.443, allocations: 34.47 MB / 0.9502 GB, free: 56.43 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/2.443, allocations: 9 kB / 0.9503 GB, free: 56.43 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01572/2.459, allocations: 11.44 MB / 0.9614 GB, free: 54.85 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003757/2.463, allocations: 1.206 MB / 0.9626 GB, free: 54.47 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001019/2.464, allocations: 83.09 kB / 0.9627 GB, free: 54.41 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002578/2.466, allocations: 260.2 kB / 0.9629 GB, free: 54.36 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009516/2.467, allocations: 448.3 kB / 0.9634 GB, free: 54.29 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00025/2.468, allocations: 121.2 kB / 0.9635 GB, free: 54.26 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.005343/2.473, allocations: 3.574 MB / 0.967 GB, free: 52.92 MB / 490.8 MB Notification: Performance of sort global known variables: time 5.81e-07/2.473, allocations: 0 / 0.967 GB, free: 52.92 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.007996/2.481, allocations: 1.905 MB / 0.9688 GB, free: 52.74 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 228 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 5,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,49.6%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001376/2.482, allocations: 0.6532 MB / 0.9695 GB, free: 52.52 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01049/2.493, allocations: 7.643 MB / 0.9769 GB, free: 48.6 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/2.493, allocations: 3.469 kB / 0.9769 GB, free: 48.6 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007436/2.5, allocations: 5.576 MB / 0.9824 GB, free: 45.45 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008246/2.509, allocations: 1.616 MB / 0.984 GB, free: 45.06 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03056/2.539, allocations: 15.3 MB / 0.9989 GB, free: 39 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00859/2.548, allocations: 6.551 MB / 1.005 GB, free: 36.87 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.005223/2.553, allocations: 1.265 MB / 1.007 GB, free: 36.72 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009516/2.554, allocations: 344 kB / 1.007 GB, free: 36.71 MB / 490.8 MB Notification: Performance of SimCode: time 8.41e-07/2.554, allocations: 0 / 1.007 GB, free: 36.71 MB / 490.8 MB Notification: Performance of Templates: time 0.4389/2.993, allocations: 97.09 MB / 1.102 GB, free: 61.6 MB / 490.8 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMS_Start_MultiPhase/AIMS_Start_MultiPhase.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches