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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",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.001604/0.001604, allocations: 186.9 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.212/1.212, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.001043/0.001043, allocations: 92.36 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09219/0.09326, allocations: 55.84 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.268, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2462/0.5143, allocations: 129.7 MB / 0.5046 GB, free: 106.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.5146, allocations: 95.09 kB / 0.5047 GB, free: 106.3 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.4787/0.9933, allocations: 155.8 MB / 0.6568 GB, free: 65.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.9934, allocations: 9.656 kB / 0.6568 GB, free: 65.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006403/0.9998, allocations: 1.25 MB / 0.658 GB, free: 65.51 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01323/1.013, allocations: 6.262 MB / 0.6641 GB, free: 64.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/1.013, allocations: 218.7 kB / 0.6643 GB, free: 64.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001138/1.014, allocations: 410.8 kB / 0.6647 GB, free: 64.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01149/1.026, allocations: 7.162 MB / 0.6717 GB, free: 64.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01262/1.039, allocations: 8.285 MB / 0.6798 GB, free: 64.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001588/1.039, allocations: 9.719 kB / 0.6798 GB, free: 64.03 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006192/1.039, allocations: 10.03 kB / 0.6798 GB, free: 64.03 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001855/1.04, allocations: 298.2 kB / 0.6801 GB, free: 64.01 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04162/1.081, allocations: 28.32 MB / 0.7078 GB, free: 58.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003048/1.084, allocations: 2.451 MB / 0.7102 GB, free: 58.11 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004199/1.088, allocations: 3.34 MB / 0.7134 GB, free: 58.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01048/1.099, allocations: 6.905 MB / 0.7202 GB, free: 57.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/1.099, allocations: 69.05 kB / 0.7202 GB, free: 57.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=348): time 4.869e-06/1.099, allocations: 3.031 kB / 0.7202 GB, free: 57.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.01867/1.118, allocations: 11.77 MB / 0.7317 GB, free: 54.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/1.118, allocations: 87.89 kB / 0.7318 GB, free: 54.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003657/1.121, allocations: 2.829 MB / 0.7346 GB, free: 52.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000253/1.122, allocations: 29.42 kB / 0.7346 GB, free: 52.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008273/1.123, allocations: 2.373 MB / 0.7369 GB, free: 51.26 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006836/1.123, allocations: 1.175 MB / 0.7381 GB, free: 50.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/1.123, allocations: 3 kB / 0.7381 GB, free: 50.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/1.124, allocations: 473.9 kB / 0.7385 GB, free: 49.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002417/1.126, allocations: 1.949 MB / 0.7404 GB, free: 49.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002759/1.129, allocations: 2.844 MB / 0.7432 GB, free: 47.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00335/1.132, allocations: 2.457 MB / 0.7456 GB, free: 46.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.776e-05/1.132, allocations: 7.594 kB / 0.7456 GB, free: 46.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=521) (initialization): time 0.01039/1.143, allocations: 6.374 MB / 0.7518 GB, free: 44.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/1.143, allocations: 5.125 kB / 0.7518 GB, free: 44.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-05/1.143, allocations: 26.59 kB / 0.7519 GB, free: 44.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002859/1.146, allocations: 1.244 MB / 0.7531 GB, free: 43.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003814/1.149, allocations: 0.8779 MB / 0.7539 GB, free: 43.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01391/1.163, allocations: 19.48 MB / 0.773 GB, free: 27.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003409/1.167, allocations: 112.7 kB / 0.7731 GB, free: 27.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003462/1.167, allocations: 157.8 kB / 0.7732 GB, free: 27.59 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.000648/1.168, allocations: 205.2 kB / 0.7734 GB, free: 27.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006136/1.168, allocations: 419.5 kB / 0.7738 GB, free: 27.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009153/1.178, allocations: 6.219 MB / 0.7799 GB, free: 24.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.567e-05/1.178, allocations: 35.12 kB / 0.7799 GB, free: 24.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.431e-05/1.178, allocations: 14.78 kB / 0.7799 GB, free: 24.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.285e-05/1.178, allocations: 22.62 kB / 0.78 GB, free: 24.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01847/1.196, allocations: 12.3 MB / 0.792 GB, free: 19.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.1e-05/1.196, allocations: 10.69 kB / 0.792 GB, free: 19.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002643/1.199, allocations: 0.5152 MB / 0.7925 GB, free: 19.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003725/1.203, allocations: 1.588 MB / 0.794 GB, free: 17.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002971/1.203, allocations: 27.22 kB / 0.7941 GB, free: 17.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.144/1.347, allocations: 28.36 MB / 0.8217 GB, free: 49.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/1.347, allocations: 5.844 kB / 0.8218 GB, free: 49.95 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01192/1.359, allocations: 9.443 MB / 0.831 GB, free: 48.7 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01497/1.374, allocations: 12.86 MB / 0.8435 GB, free: 47.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0022/1.376, allocations: 0.918 MB / 0.8444 GB, free: 46.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000731/1.377, allocations: 24.53 kB / 0.8444 GB, free: 46.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002159/1.379, allocations: 130.1 kB / 0.8446 GB, free: 46.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000448/1.379, allocations: 221.9 kB / 0.8448 GB, free: 46.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002528/1.38, allocations: 101.8 kB / 0.8449 GB, free: 46.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002734/1.382, allocations: 2.108 MB / 0.8469 GB, free: 46.81 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004781/1.387, allocations: 1.253 MB / 0.8482 GB, free: 46.81 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.0007808/1.388, allocations: 481.9 kB / 0.8486 GB, free: 46.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007309/1.395, allocations: 6.278 MB / 0.8548 GB, free: 45.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.395, allocations: 3.938 kB / 0.8548 GB, free: 45.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005318/1.401, allocations: 4.508 MB / 0.8592 GB, free: 43.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004243/1.405, allocations: 0.9053 MB / 0.86 GB, free: 43.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01969/1.425, allocations: 11.23 MB / 0.871 GB, free: 41.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00503/1.43, allocations: 4.904 MB / 0.8758 GB, free: 40.49 MB / 426.7 MB Notification: Performance of SimCode: time 7.01e-07/1.43, allocations: 0 / 0.8758 GB, free: 40.49 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1)