Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.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_DCBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",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.001085/0.001085, allocations: 188.3 kB / 8.141 MB, free: 2.191 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.097/1.097, 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.0008855/0.0008855, allocations: 104.5 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08756/0.08848, allocations: 55.82 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.257, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09505/0.3521, allocations: 100.6 MB / 487.6 MB, free: 2.141 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.3524, allocations: 87.94 kB / 487.7 MB, free: 2.055 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.2103/0.5627, allocations: 36.13 MB / 0.5116 GB, free: 93.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.5628, allocations: 7.844 kB / 0.5116 GB, free: 93.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006893/0.5635, allocations: 229.9 kB / 0.5118 GB, free: 93.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/0.5654, allocations: 1.196 MB / 0.513 GB, free: 92.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.942e-05/0.5655, allocations: 50.38 kB / 0.513 GB, free: 92.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000208/0.5657, allocations: 88.75 kB / 0.5131 GB, free: 92.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002547/0.5682, allocations: 1.428 MB / 0.5145 GB, free: 92.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002421/0.5707, allocations: 1.721 MB / 0.5162 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.015e-05/0.5707, allocations: 10.34 kB / 0.5162 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.5709, allocations: 2.719 kB / 0.5162 GB, free: 91.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.173e-05/0.5709, allocations: 72.09 kB / 0.5162 GB, free: 91.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007604/0.5785, allocations: 6.029 MB / 0.5221 GB, free: 86.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008452/0.5794, allocations: 0.5621 MB / 0.5227 GB, free: 85.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007741/0.5802, allocations: 0.5882 MB / 0.5233 GB, free: 85.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002107/0.5804, allocations: 125.7 kB / 0.5234 GB, free: 85.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.742e-05/0.5804, allocations: 43.22 kB / 0.5234 GB, free: 85.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=70): time 2.475e-06/0.5805, allocations: 0 / 0.5234 GB, free: 85.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=96): time 0.007048/0.5875, allocations: 4.162 MB / 0.5275 GB, free: 80.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.384e-05/0.5876, allocations: 60.19 kB / 0.5275 GB, free: 80.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009292/0.5885, allocations: 0.7764 MB / 0.5283 GB, free: 80.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.074e-05/0.5886, allocations: 33.7 kB / 0.5283 GB, free: 80.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/0.5888, allocations: 0.6417 MB / 0.529 GB, free: 79.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/0.589, allocations: 331.1 kB / 0.5293 GB, free: 79.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.634e-05/0.589, allocations: 0 / 0.5293 GB, free: 79.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.743e-05/0.5891, allocations: 345.9 kB / 0.5296 GB, free: 78.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006194/0.5897, allocations: 0.5571 MB / 0.5301 GB, free: 78.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007101/0.5905, allocations: 0.8849 MB / 0.531 GB, free: 77.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008195/0.5913, allocations: 0.7214 MB / 0.5317 GB, free: 76.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.5913, allocations: 4 kB / 0.5317 GB, free: 76.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.002865/0.5942, allocations: 2.022 MB / 0.5337 GB, free: 74.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.5942, allocations: 7.984 kB / 0.5337 GB, free: 74.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.5942, allocations: 15.94 kB / 0.5337 GB, free: 74.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00136/0.5956, allocations: 0.5712 MB / 0.5343 GB, free: 73.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008899/0.5965, allocations: 259.5 kB / 0.5345 GB, free: 73.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005849/0.6023, allocations: 7.655 MB / 0.542 GB, free: 65.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009269/0.6033, allocations: 35.88 kB / 0.542 GB, free: 65.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/0.6035, allocations: 51.98 kB / 0.5421 GB, free: 65.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 124 * 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: 4 * 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: 4 {(1,100.0%) 1,(4,87.5%) 8,(1,100.0%) 7,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002207/0.6037, allocations: 142.4 kB / 0.5422 GB, free: 65.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002373/0.6039, allocations: 114.6 kB / 0.5423 GB, free: 65.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002806/0.6067, allocations: 1.864 MB / 0.5441 GB, free: 63.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.6068, allocations: 8 kB / 0.5442 GB, free: 63.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.6068, allocations: 11.94 kB / 0.5442 GB, free: 63.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.6068, allocations: 11.97 kB / 0.5442 GB, free: 63.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005534/0.6123, allocations: 3.743 MB / 0.5478 GB, free: 59.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.6124, allocations: 8.031 kB / 0.5478 GB, free: 59.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004762/0.6128, allocations: 111.8 kB / 0.5479 GB, free: 59.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001692/0.6146, allocations: 0.7175 MB / 0.5486 GB, free: 58.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.529e-05/0.6146, allocations: 11.98 kB / 0.5487 GB, free: 58.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007/0.6216, allocations: 7.74 MB / 0.5562 GB, free: 50.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.6217, allocations: 4 kB / 0.5562 GB, free: 50.38 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00335/0.625, allocations: 2.78 MB / 0.5589 GB, free: 47.5 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00398/0.629, allocations: 3.965 MB / 0.5628 GB, free: 43.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004917/0.6295, allocations: 307.5 kB / 0.5631 GB, free: 43.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001792/0.6297, allocations: 8 kB / 0.5631 GB, free: 43.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005977/0.6303, allocations: 43.88 kB / 0.5632 GB, free: 43.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.6304, allocations: 56.61 kB / 0.5632 GB, free: 43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.719e-05/0.6305, allocations: 28 kB / 0.5632 GB, free: 42.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006727/0.6312, allocations: 0.5863 MB / 0.5638 GB, free: 42.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001794/0.633, allocations: 379.9 kB / 0.5642 GB, free: 42.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (imc.inertiaRotor.phi,imc.idq_sr[1],imc.idq_sr[2],imc.idq_rr[1],imc.idq_rr[2],loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * 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: 3 * 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: 3 {(7,63.3%) 22,(1,100.0%) 1,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003937/0.6334, allocations: 291.5 kB / 0.5644 GB, free: 41.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.6359, allocations: 2.08 MB / 0.5665 GB, free: 39.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6359, allocations: 0 / 0.5665 GB, free: 39.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001686/0.6376, allocations: 1.271 MB / 0.5677 GB, free: 38.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.6388, allocations: 251.9 kB / 0.568 GB, free: 38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00404/0.6429, allocations: 2.752 MB / 0.5706 GB, free: 35.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009957/0.6439, allocations: 1.588 MB / 0.5722 GB, free: 33.57 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6439, allocations: 0 / 0.5722 GB, free: 33.57 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)