Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) [: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.001069/0.001069, allocations: 178.9 kB / 8.13 MB, free: 2.223 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.185/1.185, allocations: 221.4 MB / 230 MB, free: 3.234 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.0009628/0.0009628, allocations: 106.6 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09119/0.09218, allocations: 55.83 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.2766, allocations: 50.39 MB / 387 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2446/0.5212, allocations: 122.7 MB / 0.4977 GB, free: 102.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.5215, allocations: 94.78 kB / 0.4978 GB, free: 102.7 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.2632/0.7848, allocations: 121.4 MB / 0.6163 GB, free: 7.676 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.7848, allocations: 12 kB / 0.6164 GB, free: 7.664 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00551/0.7903, allocations: 1 MB / 0.6173 GB, free: 6.656 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/0.8019, allocations: 4.618 MB / 0.6218 GB, free: 1.961 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002127/0.8021, allocations: 164 kB / 0.622 GB, free: 1.801 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009707/0.8031, allocations: 311.8 kB / 0.6223 GB, free: 1.496 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01002/0.8131, allocations: 5.234 MB / 0.6274 GB, free: 12.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01065/0.8238, allocations: 6.046 MB / 0.6333 GB, free: 6.012 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001247/0.8239, allocations: 7.906 kB / 0.6333 GB, free: 6.004 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004399/0.8244, allocations: 4 kB / 0.6333 GB, free: 6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002024/0.8246, allocations: 234.2 kB / 0.6335 GB, free: 5.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03475/0.8593, allocations: 20.56 MB / 0.6536 GB, free: 0.7422 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1165/0.9759, allocations: 1.735 MB / 0.6553 GB, free: 90.31 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002865/0.9788, allocations: 2.259 MB / 0.6575 GB, free: 90.29 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007241/0.986, allocations: 5.205 MB / 0.6626 GB, free: 89.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.9861, allocations: 67.69 kB / 0.6627 GB, free: 89.56 MB / 426.7 MB Notification: Performance of pre-optimization done (n=258): time 3.767e-06/0.9861, allocations: 3.469 kB / 0.6627 GB, free: 89.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=277): time 0.01356/0.9996, allocations: 8.732 MB / 0.6712 GB, free: 88.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.528e-05/0.9997, allocations: 77.56 kB / 0.6713 GB, free: 88.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002662/1.002, allocations: 2.147 MB / 0.6734 GB, free: 88.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000154/1.003, allocations: 28.73 kB / 0.6734 GB, free: 88.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006499/1.003, allocations: 1.82 MB / 0.6752 GB, free: 87.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000479/1.004, allocations: 0.9065 MB / 0.6761 GB, free: 86.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/1.004, allocations: 0 / 0.6761 GB, free: 86.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/1.004, allocations: 430.6 kB / 0.6765 GB, free: 86.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/1.006, allocations: 1.44 MB / 0.6779 GB, free: 86.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001974/1.008, allocations: 2.188 MB / 0.68 GB, free: 85.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002436/1.01, allocations: 1.856 MB / 0.6818 GB, free: 85.69 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.959e-06/1.01, allocations: 7.438 kB / 0.6818 GB, free: 85.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=403) (initialization): time 0.006686/1.017, allocations: 4.709 MB / 0.6864 GB, free: 85.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/1.017, allocations: 3.562 kB / 0.6864 GB, free: 85.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-05/1.017, allocations: 24.69 kB / 0.6865 GB, free: 85.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001659/1.019, allocations: 0.7524 MB / 0.6872 GB, free: 85.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002718/1.021, allocations: 0.6928 MB / 0.6879 GB, free: 85.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008689/1.03, allocations: 12.53 MB / 0.7001 GB, free: 76.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002425/1.032, allocations: 85.95 kB / 0.7002 GB, free: 76.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002457/1.033, allocations: 126.1 kB / 0.7003 GB, free: 76.52 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (360): * Single equations (assignments): 350 * 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: 7 * 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: 7 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004716/1.033, allocations: 182.6 kB / 0.7005 GB, free: 76.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004361/1.034, allocations: 304.8 kB / 0.7008 GB, free: 76.24 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006838/1.04, allocations: 4.388 MB / 0.7051 GB, free: 75.79 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/1.041, allocations: 26.97 kB / 0.7051 GB, free: 75.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.574e-05/1.041, allocations: 15.5 kB / 0.7051 GB, free: 75.79 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.316e-05/1.041, allocations: 13.59 kB / 0.7051 GB, free: 75.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/1.054, allocations: 9.187 MB / 0.7141 GB, free: 74.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/1.054, allocations: 10.45 kB / 0.7141 GB, free: 74.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002035/1.056, allocations: 443.9 kB / 0.7145 GB, free: 74.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002296/1.058, allocations: 0.9184 MB / 0.7154 GB, free: 74.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000185/1.058, allocations: 27.77 kB / 0.7155 GB, free: 74.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/1.07, allocations: 15.46 MB / 0.7305 GB, free: 64.69 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/1.07, allocations: 4.406 kB / 0.7306 GB, free: 64.69 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009069/1.079, allocations: 6.826 MB / 0.7372 GB, free: 62.43 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.012/1.091, allocations: 9.408 MB / 0.7464 GB, free: 57.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00166/1.093, allocations: 0.714 MB / 0.7471 GB, free: 57.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008024/1.094, allocations: 21.33 kB / 0.7471 GB, free: 57.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001954/1.096, allocations: 88.92 kB / 0.7472 GB, free: 57.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003303/1.096, allocations: 168.2 kB / 0.7474 GB, free: 57.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002003/1.096, allocations: 75.45 kB / 0.7474 GB, free: 57.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002475/1.099, allocations: 1.596 MB / 0.749 GB, free: 56.64 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004135/1.103, allocations: 0.942 MB / 0.7499 GB, free: 56.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 209 * 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: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006743/1.104, allocations: 412.3 kB / 0.7503 GB, free: 56.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00553/1.109, allocations: 4.612 MB / 0.7548 GB, free: 54.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/1.109, allocations: 0 / 0.7548 GB, free: 54.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003671/1.113, allocations: 2.943 MB / 0.7577 GB, free: 52.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003049/1.116, allocations: 0.6125 MB / 0.7583 GB, free: 52.47 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/1.131, allocations: 8.463 MB / 0.7666 GB, free: 49.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003867/1.135, allocations: 3.789 MB / 0.7703 GB, free: 47.47 MB / 426.7 MB Notification: Performance of SimCode: time 8.71e-07/1.135, allocations: 0 / 0.7703 GB, free: 47.47 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1)