Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_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.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.stator.zeroInductor.i0|aimsM.is.1.|aimsM.is.2.|aimsM.ir.1.|aimsM.ir.2.|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_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.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimsM.stator.zeroInductor.i0|aimsM.is.1.|aimsM.is.2.|aimsM.ir.1.|aimsM.ir.2.|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_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 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 184.2 kB / 8.138 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.165/1.165, allocations: 221.4 MB / 229.9 MB, free: 3.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 101.5 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.348e-06/9.388e-06, allocations: 8 kB / 336.5 MB, free: 9.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.1879, allocations: 50.39 MB / 386.9 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2482/0.4361, allocations: 129.7 MB / 0.5045 GB, free: 106.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.4364, allocations: 96.91 kB / 0.5046 GB, free: 106.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3307/0.7672, allocations: 149 MB / 0.6501 GB, free: 5.543 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007203/0.7679, allocations: 179.8 kB / 0.6503 GB, free: 5.367 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.1443/0.9123, allocations: 6.595 MB / 0.6567 GB, free: 66.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.9124, allocations: 11.09 kB / 0.6567 GB, free: 66.11 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007529/0.9199, allocations: 1.244 MB / 0.6579 GB, free: 65.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0145/0.9344, allocations: 6.264 MB / 0.664 GB, free: 65.19 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000292/0.9348, allocations: 218.7 kB / 0.6642 GB, free: 65.19 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001885/0.9367, allocations: 410.5 kB / 0.6646 GB, free: 65.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01362/0.9503, allocations: 7.164 MB / 0.6716 GB, free: 65.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02042/0.9708, allocations: 8.286 MB / 0.6797 GB, free: 64.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003082/0.9711, allocations: 7.188 kB / 0.6797 GB, free: 64.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001875/0.973, allocations: 11.69 kB / 0.6797 GB, free: 64.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002484/0.9732, allocations: 298.2 kB / 0.68 GB, free: 64.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04768/1.021, allocations: 28.32 MB / 0.7077 GB, free: 58.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003317/1.024, allocations: 2.454 MB / 0.7101 GB, free: 58.32 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004415/1.029, allocations: 3.33 MB / 0.7133 GB, free: 58.28 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01231/1.041, allocations: 6.909 MB / 0.7201 GB, free: 57.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.593e-05/1.041, allocations: 73.14 kB / 0.7201 GB, free: 57.45 MB / 426.7 MB Notification: Performance of pre-optimization done (n=348): time 6.632e-06/1.041, allocations: 0 / 0.7201 GB, free: 57.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.02089/1.062, allocations: 11.77 MB / 0.7316 GB, free: 54.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/1.062, allocations: 89.14 kB / 0.7317 GB, free: 54.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003954/1.066, allocations: 2.835 MB / 0.7345 GB, free: 53.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004021/1.067, allocations: 25.7 kB / 0.7345 GB, free: 53.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009812/1.068, allocations: 2.37 MB / 0.7368 GB, free: 51.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009549/1.068, allocations: 1.175 MB / 0.738 GB, free: 50.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/1.069, allocations: 0 / 0.738 GB, free: 50.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/1.069, allocations: 472.1 kB / 0.7384 GB, free: 50.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002503/1.071, allocations: 1.948 MB / 0.7403 GB, free: 49.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002879/1.074, allocations: 2.845 MB / 0.7431 GB, free: 47.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003414/1.078, allocations: 2.457 MB / 0.7455 GB, free: 46.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.722e-05/1.078, allocations: 7.781 kB / 0.7455 GB, free: 46.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=521) (initialization): time 0.01083/1.089, allocations: 6.377 MB / 0.7517 GB, free: 44.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/1.089, allocations: 3.969 kB / 0.7518 GB, free: 44.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-05/1.089, allocations: 27.12 kB / 0.7518 GB, free: 44.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002959/1.092, allocations: 1.248 MB / 0.753 GB, free: 43.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004428/1.096, allocations: 0.8662 MB / 0.7538 GB, free: 43.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01381/1.11, allocations: 19.48 MB / 0.7729 GB, free: 27.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003516/1.114, allocations: 107.5 kB / 0.773 GB, free: 27.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004356/1.114, allocations: 160 kB / 0.7731 GB, free: 27.69 MB / 426.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.0006858/1.115, allocations: 208.4 kB / 0.7733 GB, free: 27.56 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006934/1.115, allocations: 421.1 kB / 0.7737 GB, free: 27.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008975/1.124, allocations: 6.222 MB / 0.7798 GB, free: 24.76 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.348e-05/1.124, allocations: 33.88 kB / 0.7798 GB, free: 24.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.452e-05/1.124, allocations: 16.38 kB / 0.7798 GB, free: 24.76 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-05/1.124, allocations: 15.42 kB / 0.7799 GB, free: 24.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01876/1.143, allocations: 12.3 MB / 0.7919 GB, free: 19.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/1.143, allocations: 7.906 kB / 0.7919 GB, free: 19.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002541/1.146, allocations: 0.5163 MB / 0.7924 GB, free: 19.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003497/1.149, allocations: 1.594 MB / 0.7939 GB, free: 18.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000365/1.15, allocations: 30.66 kB / 0.794 GB, free: 18.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.165/1.315, allocations: 28.36 MB / 0.8217 GB, free: 52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/1.315, allocations: 8.719 kB / 0.8217 GB, free: 52 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01238/1.327, allocations: 9.441 MB / 0.8309 GB, free: 50.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002616/1.33, allocations: 0.9158 MB / 0.8318 GB, free: 50.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001256/1.331, allocations: 20.42 kB / 0.8318 GB, free: 50.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00231/1.333, allocations: 134.8 kB / 0.8319 GB, free: 50.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004396/1.334, allocations: 214.5 kB / 0.8321 GB, free: 50.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002378/1.334, allocations: 104.8 kB / 0.8322 GB, free: 50.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.00288/1.337, allocations: 2.104 MB / 0.8343 GB, free: 50.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004411/1.341, allocations: 1.223 MB / 0.8355 GB, free: 50.51 MB / 426.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%) 1,(1,100.0%) 8,(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.0008024/1.342, allocations: 483.2 kB / 0.8359 GB, free: 50.42 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007256/1.349, allocations: 6.269 MB / 0.8421 GB, free: 48.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/1.35, allocations: 3.688 kB / 0.8421 GB, free: 48.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005065/1.355, allocations: 4.507 MB / 0.8465 GB, free: 47.22 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004573/1.359, allocations: 0.9232 MB / 0.8474 GB, free: 47.21 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01876/1.378, allocations: 11.2 MB / 0.8583 GB, free: 45.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004695/1.383, allocations: 4.85 MB / 0.863 GB, free: 44.2 MB / 426.7 MB Notification: Performance of SimCode: time 6.72e-07/1.383, allocations: 1.594 kB / 0.863 GB, free: 44.2 MB / 426.7 MB Notification: Performance of Templates: time 0.1044/1.487, allocations: 66.51 MB / 0.928 GB, free: 37.74 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMS_Start/IMS_Start.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches