Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002558/0.002557, allocations: 181.2 kB / 8.152 MB, free: 2.68 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.745/1.745, allocations: 205.2 MB / 213.7 MB, free: 2.145 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001256/0.001256, allocations: 90.52 kB / 261.8 MB, free: 1.461 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 8.145e-06/8.246e-06, allocations: 0 / 314.3 MB, free: 12.89 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09754/0.09758, allocations: 47.58 MB / 361.9 MB, free: 13.2 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3258/0.4234, allocations: 113.9 MB / 475.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003582/0.4238, allocations: 91.69 kB / 475.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.9644/1.388, allocations: 217.8 MB / 0.6774 GB, free: 7.461 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001256/1.39, allocations: 255.1 kB / 0.6776 GB, free: 7.215 MB / 430.1 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.3683/1.758, allocations: 9.57 MB / 0.687 GB, free: 67.58 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/1.758, allocations: 11.22 kB / 0.687 GB, free: 67.58 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01853/1.777, allocations: 2.129 MB / 0.689 GB, free: 66.98 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03544/1.812, allocations: 8.957 MB / 0.6978 GB, free: 66.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008842/1.813, allocations: 334.6 kB / 0.6981 GB, free: 66.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004467/1.818, allocations: 0.5841 MB / 0.6987 GB, free: 66.31 MB / 430.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03857/1.856, allocations: 11.03 MB / 0.7095 GB, free: 66.27 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04783/1.904, allocations: 12.49 MB / 0.7217 GB, free: 65.17 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006712/1.905, allocations: 13.28 kB / 0.7217 GB, free: 65.16 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003948/1.909, allocations: 8.688 kB / 0.7217 GB, free: 65.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005187/1.909, allocations: 468.1 kB / 0.7221 GB, free: 65.14 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1219/2.031, allocations: 42.51 MB / 0.7636 GB, free: 55.13 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008778/2.04, allocations: 3.425 MB / 0.767 GB, free: 53.77 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01386/2.054, allocations: 4.986 MB / 0.7718 GB, free: 52.03 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04552/2.099, allocations: 12.91 MB / 0.7845 GB, free: 45.89 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001034/2.1, allocations: 90.23 kB / 0.7845 GB, free: 45.81 MB / 430.1 MB Notification: Performance of pre-optimization done (n=507): time 9.528e-06/2.1, allocations: 0 / 0.7845 GB, free: 45.81 MB / 430.1 MB Notification: Performance of matching and sorting (n=513): time 0.05545/2.155, allocations: 15.23 MB / 0.7994 GB, free: 38.87 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.122e-05/2.155, allocations: 106.7 kB / 0.7995 GB, free: 38.8 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01295/2.168, allocations: 3.859 MB / 0.8033 GB, free: 37.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001263/2.17, allocations: 28.22 kB / 0.8033 GB, free: 37.31 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001698/2.171, allocations: 3.141 MB / 0.8064 GB, free: 34.97 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002716/2.174, allocations: 1.624 MB / 0.808 GB, free: 33.68 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001131/2.175, allocations: 2.312 kB / 0.808 GB, free: 33.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0005826/2.176, allocations: 0.5293 MB / 0.8085 GB, free: 33.27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007462/2.183, allocations: 2.587 MB / 0.811 GB, free: 32.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008557/2.192, allocations: 3.755 MB / 0.8147 GB, free: 29.81 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/2.202, allocations: 3.305 MB / 0.8179 GB, free: 28.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.899e-05/2.202, allocations: 11.31 kB / 0.8179 GB, free: 28.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.02641/2.229, allocations: 8.044 MB / 0.8258 GB, free: 23.72 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/2.229, allocations: 4 kB / 0.8258 GB, free: 23.72 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.492e-05/2.229, allocations: 36 kB / 0.8258 GB, free: 23.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005316/2.234, allocations: 1.433 MB / 0.8272 GB, free: 22.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009914/2.244, allocations: 1.118 MB / 0.8283 GB, free: 21.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2263/2.47, allocations: 25.37 MB / 0.8531 GB, free: 58.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00534/2.476, allocations: 123.5 kB / 0.8532 GB, free: 58.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001514/2.477, allocations: 212 kB / 0.8534 GB, free: 58.83 MB / 430.1 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 (614): * Single equations (assignments): 598 * 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.001886/2.479, allocations: 165.7 kB / 0.8536 GB, free: 58.8 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002383/2.482, allocations: 0.5446 MB / 0.8541 GB, free: 58.8 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02906/2.511, allocations: 8.331 MB / 0.8622 GB, free: 58.04 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-05/2.511, allocations: 47.72 kB / 0.8623 GB, free: 58.04 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.859e-05/2.511, allocations: 28.78 kB / 0.8623 GB, free: 58.04 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001252/2.511, allocations: 28.95 kB / 0.8623 GB, free: 58.04 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06413/2.575, allocations: 17.27 MB / 0.8792 GB, free: 56.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.475e-05/2.575, allocations: 7 kB / 0.8792 GB, free: 56.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009172/2.585, allocations: 0.5757 MB / 0.8798 GB, free: 56.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01558/2.6, allocations: 2.241 MB / 0.882 GB, free: 56.19 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001346/2.602, allocations: 37.25 kB / 0.882 GB, free: 56.19 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05655/2.658, allocations: 32.42 MB / 0.9136 GB, free: 40.29 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/2.658, allocations: 7.125 kB / 0.9137 GB, free: 40.29 MB / 430.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03488/2.693, allocations: 12.71 MB / 0.9261 GB, free: 38.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005488/2.699, allocations: 1.236 MB / 0.9273 GB, free: 38.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002922/2.702, allocations: 27 kB / 0.9273 GB, free: 38.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007089/2.709, allocations: 190.2 kB / 0.9275 GB, free: 38.49 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001779/2.711, allocations: 331.1 kB / 0.9278 GB, free: 38.49 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008421/2.712, allocations: 133.8 kB / 0.9279 GB, free: 38.49 MB / 430.1 MB Notification: Performance of sort global known variables: time 0.008237/2.72, allocations: 2.88 MB / 0.9307 GB, free: 38.31 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01668/2.737, allocations: 1.701 MB / 0.9324 GB, free: 38.31 MB / 430.1 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 (329): * Single equations (assignments): 316 * 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.002015/2.739, allocations: 499.8 kB / 0.9329 GB, free: 38.19 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01992/2.759, allocations: 8.103 MB / 0.9408 GB, free: 36.47 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/2.759, allocations: 6.844 kB / 0.9408 GB, free: 36.47 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01494/2.774, allocations: 5.463 MB / 0.9461 GB, free: 35.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01105/2.785, allocations: 1.12 MB / 0.9472 GB, free: 35.05 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06191/2.847, allocations: 15.66 MB / 0.9625 GB, free: 29.38 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01821/2.865, allocations: 6.778 MB / 0.9691 GB, free: 27.29 MB / 430.1 MB Notification: Performance of SimCode: time 1.423e-06/2.865, allocations: 0 / 0.9691 GB, free: 27.29 MB / 430.1 MB Notification: Performance of Templates: time 2.157/5.022, allocations: 0.7962 GB / 1.765 GB, free: 46.12 MB / 462.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches