Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 184 kB / 8.138 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.106/1.106, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.0009441/0.0009441, allocations: 96.7 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09038/0.09135, allocations: 55.83 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.2653, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.101/0.3663, allocations: 104.7 MB / 491.7 MB, free: 14.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.3666, allocations: 95.88 kB / 491.8 MB, free: 14 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.2502/0.6168, allocations: 55.51 MB / 0.5345 GB, free: 74.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.6168, allocations: 8 kB / 0.5345 GB, free: 74.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001119/0.618, allocations: 363.9 kB / 0.5348 GB, free: 74.6 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003377/0.6214, allocations: 1.897 MB / 0.5367 GB, free: 72.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.619e-05/0.6215, allocations: 88 kB / 0.5367 GB, free: 72.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004206/0.6219, allocations: 151.9 kB / 0.5369 GB, free: 72.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004157/0.6261, allocations: 2.763 MB / 0.5396 GB, free: 69.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004396/0.6305, allocations: 3.1 MB / 0.5426 GB, free: 66.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.766e-05/0.6306, allocations: 7.906 kB / 0.5426 GB, free: 66.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002267/0.6308, allocations: 4 kB / 0.5426 GB, free: 66.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.007e-05/0.6309, allocations: 112.9 kB / 0.5427 GB, free: 66.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01323/0.6441, allocations: 10.48 MB / 0.553 GB, free: 55.65 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.6454, allocations: 1.124 MB / 0.5541 GB, free: 54.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.6468, allocations: 1.367 MB / 0.5554 GB, free: 53.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002573/0.6471, allocations: 134.4 kB / 0.5555 GB, free: 53.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001138/0.6482, allocations: 1.103 MB / 0.5566 GB, free: 51.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=159): time 3.276e-06/0.6482, allocations: 0 / 0.5566 GB, free: 51.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=175): time 0.008617/0.6569, allocations: 5.876 MB / 0.5624 GB, free: 45.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.6569, allocations: 184.1 kB / 0.5625 GB, free: 45.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.6585, allocations: 1.359 MB / 0.5639 GB, free: 44.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.827e-05/0.6586, allocations: 29.7 kB / 0.5639 GB, free: 44.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005137/0.6591, allocations: 0.9097 MB / 0.5648 GB, free: 43.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003046/0.6595, allocations: 0.5426 MB / 0.5653 GB, free: 42.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.832e-05/0.6596, allocations: 0 / 0.5653 GB, free: 42.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.792e-05/0.6596, allocations: 381.9 kB / 0.5657 GB, free: 42.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001038/0.6607, allocations: 0.9605 MB / 0.5666 GB, free: 41.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/0.6619, allocations: 1.312 MB / 0.5679 GB, free: 40.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001212/0.6631, allocations: 1.118 MB / 0.569 GB, free: 38.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.6631, allocations: 4 kB / 0.569 GB, free: 38.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004012/0.6671, allocations: 3.088 MB / 0.572 GB, free: 35.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.6671, allocations: 4 kB / 0.572 GB, free: 35.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.6672, allocations: 12 kB / 0.572 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001738/0.6689, allocations: 0.8764 MB / 0.5729 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/0.6702, allocations: 327.5 kB / 0.5732 GB, free: 34.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007588/0.6778, allocations: 8.851 MB / 0.5818 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.6793, allocations: 83.98 kB / 0.5819 GB, free: 25.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/0.6795, allocations: 75.98 kB / 0.582 GB, free: 25.29 MB / 378.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.0002988/0.6798, allocations: 158 kB / 0.5821 GB, free: 25.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002532/0.6801, allocations: 189.7 kB / 0.5823 GB, free: 24.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004007/0.6841, allocations: 2.958 MB / 0.5852 GB, free: 21.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.6841, allocations: 16 kB / 0.5852 GB, free: 21.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.6841, allocations: 11.94 kB / 0.5852 GB, free: 21.94 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.6841, allocations: 19.88 kB / 0.5852 GB, free: 21.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008089/0.6922, allocations: 5.756 MB / 0.5909 GB, free: 16.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.445e-06/0.6923, allocations: 4 kB / 0.5909 GB, free: 16.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009557/0.6932, allocations: 216 kB / 0.5911 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001972/0.6952, allocations: 0.9253 MB / 0.592 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.6953, allocations: 15.98 kB / 0.592 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008344/0.7037, allocations: 10.29 MB / 0.602 GB, free: 4.188 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.7037, allocations: 8.062 kB / 0.602 GB, free: 4.18 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00529/0.709, allocations: 4.584 MB / 0.6065 GB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007989/0.717, allocations: 6.504 MB / 0.6129 GB, free: 8.879 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.7181, allocations: 490.5 kB / 0.6133 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003216/0.7184, allocations: 12 kB / 0.6134 GB, free: 8.367 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/0.7194, allocations: 79.92 kB / 0.6134 GB, free: 8.289 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003304/0.7198, allocations: 141.8 kB / 0.6136 GB, free: 8.152 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001266/0.7199, allocations: 47.98 kB / 0.6136 GB, free: 8.105 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001488/0.7214, allocations: 1.024 MB / 0.6146 GB, free: 7.086 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002629/0.724, allocations: 0.5703 MB / 0.6152 GB, free: 6.516 MB / 394.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.0005698/0.7246, allocations: 295.1 kB / 0.6154 GB, free: 6.234 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004116/0.7287, allocations: 2.989 MB / 0.6184 GB, free: 3.168 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.7287, allocations: 4 kB / 0.6184 GB, free: 3.164 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002887/0.7316, allocations: 2.075 MB / 0.6204 GB, free: 1.031 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001822/0.7335, allocations: 430.5 kB / 0.6208 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007688/0.7412, allocations: 4.703 MB / 0.6254 GB, free: 11.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002186/0.7434, allocations: 2.35 MB / 0.6277 GB, free: 9.445 MB / 410.7 MB Notification: Performance of SimCode: time 5.01e-07/0.7434, allocations: 0 / 0.6277 GB, free: 9.445 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1)