Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",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.00119/0.00119, allocations: 183.7 kB / 8.132 MB, free: 2.164 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.108/1.108, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.0008868/0.0008868, allocations: 108 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09068/0.09159, allocations: 55.82 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1762/0.2678, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09977/0.3676, allocations: 104.4 MB / 491.4 MB, free: 14.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.3679, allocations: 83.94 kB / 491.5 MB, free: 14.21 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.2351/0.603, allocations: 40.53 MB / 0.5196 GB, free: 44.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.603, allocations: 11.56 kB / 0.5196 GB, free: 44.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008162/0.6038, allocations: 229.5 kB / 0.5198 GB, free: 44.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002326/0.6062, allocations: 1.286 MB / 0.5211 GB, free: 43.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.074e-05/0.6062, allocations: 46.91 kB / 0.5211 GB, free: 43.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002598/0.6065, allocations: 101 kB / 0.5212 GB, free: 43.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002248/0.6088, allocations: 1.478 MB / 0.5226 GB, free: 43.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00257/0.6114, allocations: 1.752 MB / 0.5243 GB, free: 43.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.292e-05/0.6114, allocations: 7.328 kB / 0.5244 GB, free: 43.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/0.6116, allocations: 0 / 0.5244 GB, free: 43.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.789e-05/0.6116, allocations: 76.03 kB / 0.5244 GB, free: 43.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008282/0.6199, allocations: 6.587 MB / 0.5309 GB, free: 40.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.6204, allocations: 390.1 kB / 0.5312 GB, free: 40.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002903/0.6207, allocations: 266.2 kB / 0.5315 GB, free: 40.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002305/0.623, allocations: 1.433 MB / 0.5329 GB, free: 40.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.6231, allocations: 42.34 kB / 0.5329 GB, free: 40.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 2.635e-06/0.6231, allocations: 0 / 0.5329 GB, free: 40.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.004361/0.6275, allocations: 2.491 MB / 0.5354 GB, free: 39.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.106e-05/0.6275, allocations: 60.38 kB / 0.5354 GB, free: 39.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001401/0.6289, allocations: 1.184 MB / 0.5366 GB, free: 39.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/0.629, allocations: 25.7 kB / 0.5366 GB, free: 39.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000334/0.6293, allocations: 0.8652 MB / 0.5374 GB, free: 38.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.6294, allocations: 205.9 kB / 0.5376 GB, free: 38.72 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.037e-05/0.6295, allocations: 4 kB / 0.5376 GB, free: 38.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.639e-05/0.6296, allocations: 372.9 kB / 0.538 GB, free: 38.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005355/0.6301, allocations: 466.3 kB / 0.5384 GB, free: 38.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007793/0.6309, allocations: 1.367 MB / 0.5398 GB, free: 37.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007669/0.6317, allocations: 0.7428 MB / 0.5405 GB, free: 37.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.6317, allocations: 7.906 kB / 0.5405 GB, free: 37.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002392/0.6341, allocations: 1.84 MB / 0.5423 GB, free: 36.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.6341, allocations: 13.53 kB / 0.5423 GB, free: 36.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.6342, allocations: 31.25 kB / 0.5423 GB, free: 36.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005056/0.6347, allocations: 225.3 kB / 0.5426 GB, free: 36.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.6357, allocations: 374.5 kB / 0.5429 GB, free: 36.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.6369, allocations: 1.637 MB / 0.5445 GB, free: 35.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.6382, allocations: 85.97 kB / 0.5446 GB, free: 35.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.6383, allocations: 92.19 kB / 0.5447 GB, free: 35.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 192 * 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: 1 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001787/0.6385, allocations: 184.8 kB / 0.5449 GB, free: 35.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.6387, allocations: 133 kB / 0.545 GB, free: 35.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001488/0.6402, allocations: 0.9936 MB / 0.546 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.6402, allocations: 7.812 kB / 0.546 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.6402, allocations: 3.812 kB / 0.546 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.6402, allocations: 3.328 kB / 0.546 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004524/0.6447, allocations: 2.918 MB / 0.5488 GB, free: 34.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.6448, allocations: 3.438 kB / 0.5488 GB, free: 34.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004149/0.6452, allocations: 92.83 kB / 0.5489 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005979/0.6458, allocations: 232.5 kB / 0.5491 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.823e-05/0.6458, allocations: 8.266 kB / 0.5491 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002739/0.6486, allocations: 3.47 MB / 0.5525 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001377/0.65, allocations: 1.884 MB / 0.5544 GB, free: 30.61 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002048/0.6521, allocations: 1.769 MB / 0.5561 GB, free: 29.97 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002348/0.6544, allocations: 2.616 MB / 0.5587 GB, free: 28.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005579/0.655, allocations: 281 kB / 0.5589 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001944/0.6552, allocations: 3.812 kB / 0.5589 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006108/0.6558, allocations: 32.17 kB / 0.559 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.319e-05/0.6559, allocations: 38.83 kB / 0.559 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-05/0.6559, allocations: 21.31 kB / 0.559 GB, free: 28.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001161/0.6571, allocations: 0.8456 MB / 0.5598 GB, free: 28.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00213/0.6593, allocations: 361.8 kB / 0.5602 GB, free: 28.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 46 * 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: 2 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003672/0.6596, allocations: 361.9 kB / 0.5605 GB, free: 28.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001907/0.6616, allocations: 1.44 MB / 0.5619 GB, free: 27.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.6616, allocations: 0 / 0.5619 GB, free: 27.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009545/0.6625, allocations: 0.7398 MB / 0.5627 GB, free: 26.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.664, allocations: 305.5 kB / 0.563 GB, free: 26.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003819/0.6678, allocations: 2.347 MB / 0.5652 GB, free: 25.74 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/0.6689, allocations: 1.607 MB / 0.5668 GB, free: 24.88 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.6689, allocations: 0 / 0.5668 GB, free: 24.88 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1)