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") [: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.001539/0.001539, allocations: 184.3 kB / 8.478 MB, free: 1.848 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.201/1.201, allocations: 205.2 MB / 214.1 MB, free: 5.516 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009184/0.0009185, allocations: 94.7 kB / 262.1 MB, free: 5.57 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.521e-06/5.541e-06, allocations: 0 / 315 MB, free: 41.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07462/0.07464, allocations: 47.57 MB / 362.6 MB, free: 10.01 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2663/0.341, allocations: 113.9 MB / 476.5 MB, free: 11.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.3413, allocations: 88.33 kB / 476.5 MB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.6242/0.9656, allocations: 217.8 MB / 0.678 GB, free: 61.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009788/0.9666, allocations: 243.6 kB / 0.6783 GB, free: 61.53 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.02846/0.9951, allocations: 9.581 MB / 0.6876 GB, free: 51.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.9951, allocations: 8.031 kB / 0.6876 GB, free: 51.87 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01278/1.008, allocations: 2.133 MB / 0.6897 GB, free: 49.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02325/1.031, allocations: 8.949 MB / 0.6985 GB, free: 40.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006765/1.032, allocations: 328 kB / 0.6988 GB, free: 40.49 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005382/1.037, allocations: 0.5896 MB / 0.6993 GB, free: 39.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02885/1.066, allocations: 11.03 MB / 0.7101 GB, free: 28.86 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03688/1.103, allocations: 12.5 MB / 0.7223 GB, free: 16.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005552/1.104, allocations: 15.84 kB / 0.7223 GB, free: 16.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003593/1.107, allocations: 8 kB / 0.7223 GB, free: 16.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003615/1.108, allocations: 463.7 kB / 0.7228 GB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2466/1.354, allocations: 42.52 MB / 0.7643 GB, free: 80.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005394/1.36, allocations: 3.428 MB / 0.7677 GB, free: 80.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007278/1.367, allocations: 4.977 MB / 0.7725 GB, free: 80.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02223/1.389, allocations: 12.91 MB / 0.7851 GB, free: 79.37 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.476e-05/1.389, allocations: 89.86 kB / 0.7852 GB, free: 79.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=507): time 6.933e-06/1.389, allocations: 0 / 0.7852 GB, free: 79.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=513): time 0.02587/1.415, allocations: 15.23 MB / 0.8001 GB, free: 76.24 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/1.415, allocations: 109.5 kB / 0.8002 GB, free: 76.17 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005555/1.421, allocations: 3.859 MB / 0.804 GB, free: 74.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004363/1.421, allocations: 29.36 kB / 0.804 GB, free: 74.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001422/1.423, allocations: 3.433 MB / 0.8073 GB, free: 72.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001158/1.424, allocations: 1.632 MB / 0.8089 GB, free: 71.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002752/1.424, allocations: 4.219 kB / 0.8089 GB, free: 71.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002259/1.425, allocations: 0.5184 MB / 0.8094 GB, free: 70.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003126/1.428, allocations: 2.591 MB / 0.812 GB, free: 69.65 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003702/1.431, allocations: 3.751 MB / 0.8156 GB, free: 67.24 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004498/1.436, allocations: 3.317 MB / 0.8189 GB, free: 65.95 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.786e-05/1.436, allocations: 9.656 kB / 0.8189 GB, free: 65.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01237/1.448, allocations: 8.364 MB / 0.827 GB, free: 62.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/1.448, allocations: 5.906 kB / 0.8271 GB, free: 62.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.176e-05/1.448, allocations: 35.5 kB / 0.8271 GB, free: 62.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003389/1.452, allocations: 1.469 MB / 0.8285 GB, free: 62.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005304/1.457, allocations: 1.125 MB / 0.8296 GB, free: 62.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01838/1.476, allocations: 25.26 MB / 0.8543 GB, free: 41.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005454/1.481, allocations: 132.2 kB / 0.8544 GB, free: 41.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009213/1.482, allocations: 217.8 kB / 0.8546 GB, free: 41.54 MB / 426.7 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.001025/1.483, allocations: 245.9 kB / 0.8549 GB, free: 41.39 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/1.484, allocations: 0.5436 MB / 0.8554 GB, free: 41.11 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01288/1.497, allocations: 8.328 MB / 0.8635 GB, free: 37.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.263e-05/1.497, allocations: 50.06 kB / 0.8636 GB, free: 37.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.11e-05/1.497, allocations: 26.31 kB / 0.8636 GB, free: 37.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.08e-05/1.497, allocations: 24.56 kB / 0.8636 GB, free: 37.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02496/1.522, allocations: 17.28 MB / 0.8805 GB, free: 25.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/1.522, allocations: 7.438 kB / 0.8805 GB, free: 25.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002829/1.525, allocations: 0.5732 MB / 0.8811 GB, free: 24.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005069/1.53, allocations: 2.237 MB / 0.8832 GB, free: 22.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005012/1.531, allocations: 39.11 kB / 0.8833 GB, free: 22.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1731/1.704, allocations: 32.43 MB / 0.9149 GB, free: 74.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/1.704, allocations: 6.438 kB / 0.915 GB, free: 74.79 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01717/1.721, allocations: 12.71 MB / 0.9274 GB, free: 73.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003903/1.725, allocations: 1.236 MB / 0.9286 GB, free: 73.15 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001389/1.726, allocations: 18.44 kB / 0.9286 GB, free: 73.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002902/1.729, allocations: 183.3 kB / 0.9288 GB, free: 73.15 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006033/1.73, allocations: 333.3 kB / 0.9291 GB, free: 73.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003131/1.73, allocations: 136.4 kB / 0.9292 GB, free: 73.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003912/1.734, allocations: 2.884 MB / 0.932 GB, free: 72.97 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005843/1.74, allocations: 1.703 MB / 0.9337 GB, free: 72.97 MB / 426.7 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.0008443/1.741, allocations: 490.4 kB / 0.9342 GB, free: 72.87 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01046/1.751, allocations: 8.113 MB / 0.9421 GB, free: 71.15 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.106e-06/1.751, allocations: 1.406 kB / 0.9421 GB, free: 71.15 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007712/1.759, allocations: 5.461 MB / 0.9474 GB, free: 69.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006682/1.766, allocations: 1.126 MB / 0.9485 GB, free: 69.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03102/1.797, allocations: 15.74 MB / 0.9639 GB, free: 66.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00789/1.805, allocations: 6.86 MB / 0.9706 GB, free: 65.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.242e-06/1.805, allocations: 2.516 kB / 0.9706 GB, free: 65.75 MB / 426.7 MB Notification: Performance of Templates: time 0.3191/2.124, allocations: 90.22 MB / 1.059 GB, free: 77.25 MB / 426.7 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