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.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aimsE.i_0_r|// aimsE.i_0_s|aimsE.idq_rr.1.|aimsE.idq_rr.2.|aimsE.idq_sr.1.|aimsE.idq_sr.2.|aimsE.is.1.|aimsE.is.2.|aimsE.ir.1.|aimsE.ir.2.|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.rotor.zeroInductor.i0|aimsM.is.1.|aimsM.is.2.|aimsM.ir.1.|aimsM.ir.2.|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.stator.zeroInductor.i0|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aimsE.i_0_r|// aimsE.i_0_s|aimsE.idq_rr.1.|aimsE.idq_rr.2.|aimsE.idq_sr.1.|aimsE.idq_sr.2.|aimsE.is.1.|aimsE.is.2.|aimsE.ir.1.|aimsE.ir.2.|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.rotor.zeroInductor.i0|aimsM.is.1.|aimsM.is.2.|aimsM.ir.1.|aimsM.ir.2.|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.stator.zeroInductor.i0|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") [: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.0009025/0.0009025, allocations: 178.4 kB / 8.475 MB, free: 1.863 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.166/1.166, allocations: 205.2 MB / 214.1 MB, free: 1.883 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.000879/0.000879, allocations: 75.41 kB / 262.1 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.702e-06/6.723e-06, allocations: 4 kB / 315 MB, free: 23.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07844/0.07846, allocations: 47.59 MB / 362.6 MB, free: 7.371 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2732/0.3517, allocations: 128.4 MB / 490.9 MB, free: 48 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.352, allocations: 83.92 kB / 491 MB, free: 8 kB / 362.7 MB Notification: Performance of FrontEnd: time 0.4569/0.8089, allocations: 148.4 MB / 0.6244 GB, free: 61.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005469/0.8095, allocations: 179.6 kB / 0.6246 GB, free: 61.35 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.01556/0.8251, allocations: 6.551 MB / 0.631 GB, free: 54.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.8251, allocations: 8.031 kB / 0.631 GB, free: 54.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00634/0.8315, allocations: 1.255 MB / 0.6322 GB, free: 53.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01595/0.8474, allocations: 6.267 MB / 0.6383 GB, free: 47.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003587/0.8478, allocations: 220 kB / 0.6385 GB, free: 47.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002667/0.8505, allocations: 411.8 kB / 0.6389 GB, free: 46.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01564/0.8662, allocations: 7.165 MB / 0.6459 GB, free: 39.44 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02212/0.8883, allocations: 8.315 MB / 0.654 GB, free: 30.83 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002801/0.8886, allocations: 15.84 kB / 0.654 GB, free: 30.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00169/0.8903, allocations: 8 kB / 0.654 GB, free: 30.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002339/0.8906, allocations: 297.4 kB / 0.6543 GB, free: 30.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05062/0.9412, allocations: 28.37 MB / 0.682 GB, free: 1.715 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.135/1.076, allocations: 2.446 MB / 0.6844 GB, free: 91.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004536/1.081, allocations: 3.333 MB / 0.6877 GB, free: 91.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01186/1.093, allocations: 6.933 MB / 0.6945 GB, free: 90.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.529e-05/1.093, allocations: 75.89 kB / 0.6945 GB, free: 90.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=348): time 6.061e-06/1.093, allocations: 0 / 0.6945 GB, free: 90.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=367): time 0.01999/1.113, allocations: 11.79 MB / 0.706 GB, free: 89.37 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/1.113, allocations: 96.58 kB / 0.7061 GB, free: 89.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004476/1.117, allocations: 2.831 MB / 0.7089 GB, free: 89.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006237/1.118, allocations: 29.05 kB / 0.7089 GB, free: 89.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/1.119, allocations: 2.368 MB / 0.7112 GB, free: 87.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001312/1.121, allocations: 1.178 MB / 0.7124 GB, free: 87.08 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002392/1.121, allocations: 0 / 0.7124 GB, free: 87.08 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/1.121, allocations: 475.5 kB / 0.7128 GB, free: 86.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002501/1.124, allocations: 1.946 MB / 0.7147 GB, free: 86.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002724/1.126, allocations: 2.852 MB / 0.7175 GB, free: 85.74 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003258/1.13, allocations: 2.457 MB / 0.7199 GB, free: 85.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.558e-05/1.13, allocations: 6.125 kB / 0.7199 GB, free: 85.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=521) (initialization): time 0.009377/1.139, allocations: 6.375 MB / 0.7262 GB, free: 85.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/1.139, allocations: 6.781 kB / 0.7262 GB, free: 85.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.347e-05/1.139, allocations: 28.98 kB / 0.7262 GB, free: 85.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002593/1.142, allocations: 1.248 MB / 0.7274 GB, free: 84.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00377/1.145, allocations: 0.8703 MB / 0.7283 GB, free: 84.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01537/1.161, allocations: 19.49 MB / 0.7473 GB, free: 71.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004155/1.165, allocations: 105.1 kB / 0.7474 GB, free: 71.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007757/1.166, allocations: 157.6 kB / 0.7475 GB, free: 71.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (458): * Single equations (assignments): 444 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(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.0008788/1.167, allocations: 208.9 kB / 0.7477 GB, free: 71.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001198/1.168, allocations: 423.7 kB / 0.7481 GB, free: 71.17 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01004/1.178, allocations: 6.229 MB / 0.7542 GB, free: 68.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.662e-05/1.178, allocations: 35.5 kB / 0.7543 GB, free: 68.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.353e-05/1.178, allocations: 15.75 kB / 0.7543 GB, free: 68.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.464e-05/1.178, allocations: 16.45 kB / 0.7543 GB, free: 68.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0222/1.2, allocations: 12.33 MB / 0.7663 GB, free: 63.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/1.2, allocations: 1.938 kB / 0.7663 GB, free: 63.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0027/1.203, allocations: 0.5126 MB / 0.7668 GB, free: 63.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00381/1.207, allocations: 1.589 MB / 0.7684 GB, free: 62.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005226/1.207, allocations: 31.3 kB / 0.7684 GB, free: 62.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0219/1.229, allocations: 28.36 MB / 0.7961 GB, free: 39.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/1.229, allocations: 3.938 kB / 0.7961 GB, free: 39.39 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01511/1.245, allocations: 9.459 MB / 0.8053 GB, free: 35.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002801/1.247, allocations: 0.9188 MB / 0.8062 GB, free: 34.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001328/1.249, allocations: 19.42 kB / 0.8063 GB, free: 34.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002468/1.251, allocations: 137.6 kB / 0.8064 GB, free: 34.47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000425/1.252, allocations: 215.1 kB / 0.8066 GB, free: 34.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002427/1.252, allocations: 98.73 kB / 0.8067 GB, free: 34.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.003654/1.256, allocations: 2.115 MB / 0.8088 GB, free: 33.03 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006035/1.262, allocations: 1.217 MB / 0.8099 GB, free: 31.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (274): * Single equations (assignments): 257 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009734/1.263, allocations: 478.2 kB / 0.8104 GB, free: 31.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007854/1.27, allocations: 6.275 MB / 0.8165 GB, free: 25.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/1.271, allocations: 0 / 0.8165 GB, free: 25.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005675/1.276, allocations: 4.543 MB / 0.821 GB, free: 21.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005437/1.282, allocations: 0.9064 MB / 0.8219 GB, free: 20.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02168/1.303, allocations: 11.22 MB / 0.8328 GB, free: 10.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005668/1.309, allocations: 4.857 MB / 0.8376 GB, free: 7.121 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/1.309, allocations: 0 / 0.8376 GB, free: 7.121 MB / 410.7 MB Notification: Performance of Templates: time 0.2585/1.568, allocations: 66.45 MB / 0.9024 GB, free: 74.63 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_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/AIMS_Start.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches