Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",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 trunk/package.mo): time 0.0009895/0.0009895, allocations: 203.6 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.134/1.134, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008332/0.0008332, allocations: 95.17 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08817/0.08903, allocations: 56.9 MB / 343.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07845/0.1675, allocations: 51.49 MB / 394.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2198/0.3873, allocations: 105.5 MB / 0.4885 GB, free: 3.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.3876, allocations: 84.14 kB / 0.4886 GB, free: 3.887 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.1411/0.5287, allocations: 55.64 MB / 0.5429 GB, free: 1.223 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.5288, allocations: 16 kB / 0.5429 GB, free: 1.207 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001724/0.5305, allocations: 403.9 kB / 0.5433 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004169/0.5347, allocations: 1.886 MB / 0.5451 GB, free: 14.87 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.5349, allocations: 95.98 kB / 0.5452 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005339/0.5354, allocations: 155.9 kB / 0.5454 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004652/0.5401, allocations: 2.759 MB / 0.5481 GB, free: 11.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004805/0.5449, allocations: 3.102 MB / 0.5511 GB, free: 8.598 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.809e-05/0.545, allocations: 15.83 kB / 0.5511 GB, free: 8.582 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000212/0.5452, allocations: 4 kB / 0.5511 GB, free: 8.578 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001081/0.5453, allocations: 108.9 kB / 0.5512 GB, free: 8.469 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01597/0.5613, allocations: 10.48 MB / 0.5615 GB, free: 13.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.5629, allocations: 1.116 MB / 0.5626 GB, free: 12.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001832/0.5647, allocations: 1.37 MB / 0.5639 GB, free: 11.24 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002893/0.565, allocations: 142.4 kB / 0.564 GB, free: 11.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00148/0.5665, allocations: 1.107 MB / 0.5651 GB, free: 9.949 MB / 442.7 MB Notification: Performance of pre-optimization done (n=159): time 3.316e-06/0.5665, allocations: 0 / 0.5651 GB, free: 9.949 MB / 442.7 MB Notification: Performance of matching and sorting (n=175): time 0.01053/0.5771, allocations: 5.862 MB / 0.5708 GB, free: 4.023 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.556e-05/0.5772, allocations: 180.2 kB / 0.571 GB, free: 3.812 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001981/0.5792, allocations: 1.37 MB / 0.5723 GB, free: 2.438 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000127/0.5793, allocations: 29.7 kB / 0.5724 GB, free: 2.402 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007482/0.5801, allocations: 0.9098 MB / 0.5733 GB, free: 1.477 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004677/0.5806, allocations: 0.5389 MB / 0.5738 GB, free: 0.9297 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.16e-05/0.5807, allocations: 0 / 0.5738 GB, free: 0.9297 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.5808, allocations: 377.9 kB / 0.5741 GB, free: 0.5547 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1072/0.688, allocations: 0.9589 MB / 0.5751 GB, free: 138.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.6894, allocations: 1.319 MB / 0.5764 GB, free: 138.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001282/0.6907, allocations: 1.114 MB / 0.5775 GB, free: 138.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.6907, allocations: 7.297 kB / 0.5775 GB, free: 138.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00423/0.6949, allocations: 3.091 MB / 0.5805 GB, free: 138.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.695, allocations: 6.125 kB / 0.5805 GB, free: 138.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.695, allocations: 7.719 kB / 0.5805 GB, free: 138.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001751/0.6968, allocations: 0.8603 MB / 0.5813 GB, free: 138.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/0.6981, allocations: 330.4 kB / 0.5817 GB, free: 138.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007788/0.7059, allocations: 8.842 MB / 0.5903 GB, free: 134.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/0.7073, allocations: 99.52 kB / 0.5904 GB, free: 134.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001645/0.7075, allocations: 62.81 kB / 0.5904 GB, free: 134.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 174 * 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: 3 * 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: 3 {(2,100.0%) 12,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002854/0.7078, allocations: 160.8 kB / 0.5906 GB, free: 134.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002627/0.708, allocations: 184.4 kB / 0.5908 GB, free: 134.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004112/0.7121, allocations: 2.961 MB / 0.5937 GB, free: 134.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.7122, allocations: 17.41 kB / 0.5937 GB, free: 134.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.7122, allocations: 7.281 kB / 0.5937 GB, free: 134.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/0.7122, allocations: 10.78 kB / 0.5937 GB, free: 134.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008101/0.7203, allocations: 5.768 MB / 0.5993 GB, free: 133.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.7203, allocations: 3.828 kB / 0.5993 GB, free: 133.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009811/0.7213, allocations: 220.9 kB / 0.5995 GB, free: 133.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002056/0.7234, allocations: 0.9105 MB / 0.6004 GB, free: 133.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001311/0.7235, allocations: 18.25 kB / 0.6005 GB, free: 133.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008755/0.7323, allocations: 10.29 MB / 0.6105 GB, free: 128.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.7323, allocations: 3.719 kB / 0.6105 GB, free: 128.3 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005252/0.7376, allocations: 4.596 MB / 0.615 GB, free: 126.3 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006523/0.7441, allocations: 6.497 MB / 0.6213 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008182/0.745, allocations: 499.2 kB / 0.6218 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000302/0.7453, allocations: 9.844 kB / 0.6218 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.7463, allocations: 78.55 kB / 0.6219 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/0.7466, allocations: 151 kB / 0.622 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/0.7467, allocations: 46.58 kB / 0.6221 GB, free: 123.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001161/0.7479, allocations: 1.02 MB / 0.6231 GB, free: 122.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002304/0.7502, allocations: 0.5765 MB / 0.6236 GB, free: 122.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004404/0.7506, allocations: 305.8 kB / 0.6239 GB, free: 122.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003452/0.7541, allocations: 2.987 MB / 0.6269 GB, free: 121.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.7541, allocations: 0 / 0.6269 GB, free: 121.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002679/0.7568, allocations: 2.066 MB / 0.6289 GB, free: 120.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001784/0.7586, allocations: 426 kB / 0.6293 GB, free: 120.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007757/0.7664, allocations: 4.713 MB / 0.6339 GB, free: 118.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001867/0.7683, allocations: 2.353 MB / 0.6362 GB, free: 117.3 MB / 442.7 MB Notification: Performance of SimCode: time 5.71e-07/0.7683, allocations: 0 / 0.6362 GB, free: 117.3 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1)