Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00127/0.00127, allocations: 202.3 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.115/1.115, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008589/0.0008589, allocations: 89.17 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09189/0.09277, allocations: 56.91 MB / 343.2 MB, free: 8.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08031/0.1731, allocations: 51.47 MB / 394.7 MB, free: 5.059 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2259/0.399, allocations: 105.8 MB / 0.4888 GB, free: 3.969 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.3993, allocations: 85.39 kB / 0.4888 GB, free: 3.926 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: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.1051/0.5044, allocations: 40.67 MB / 0.5286 GB, free: 80 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.5045, allocations: 8 kB / 0.5286 GB, free: 72 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009327/0.5054, allocations: 245.7 kB / 0.5288 GB, free: 15.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002573/0.508, allocations: 1.274 MB / 0.53 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.465e-05/0.5081, allocations: 55.98 kB / 0.5301 GB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002562/0.5083, allocations: 91.91 kB / 0.5302 GB, free: 14.35 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002582/0.5109, allocations: 1.494 MB / 0.5316 GB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0029/0.5138, allocations: 1.764 MB / 0.5334 GB, free: 11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.645e-05/0.5139, allocations: 11.89 kB / 0.5334 GB, free: 10.99 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.514, allocations: 0 / 0.5334 GB, free: 10.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.451e-05/0.5141, allocations: 74.94 kB / 0.5334 GB, free: 10.92 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00911/0.5232, allocations: 6.702 MB / 0.54 GB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005172/0.5238, allocations: 398.5 kB / 0.5404 GB, free: 3.531 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003527/0.5241, allocations: 270.3 kB / 0.5406 GB, free: 3.266 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002252/0.5264, allocations: 1.404 MB / 0.542 GB, free: 1.816 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.5264, allocations: 34.56 kB / 0.542 GB, free: 1.773 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 1.773e-06/0.5264, allocations: 0 / 0.542 GB, free: 1.773 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.003637/0.5301, allocations: 2.087 MB / 0.5441 GB, free: 15.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.957e-05/0.5301, allocations: 59.91 kB / 0.5441 GB, free: 15.56 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00165/0.5318, allocations: 1.184 MB / 0.5453 GB, free: 14.37 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.237e-05/0.5318, allocations: 29.7 kB / 0.5453 GB, free: 14.33 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004933/0.5323, allocations: 0.8684 MB / 0.5462 GB, free: 13.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.5325, allocations: 209.2 kB / 0.5464 GB, free: 13.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/0.5326, allocations: 3.938 kB / 0.5464 GB, free: 13.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.5327, allocations: 373.8 kB / 0.5467 GB, free: 12.87 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006762/0.5334, allocations: 451.8 kB / 0.5472 GB, free: 12.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.5346, allocations: 1.315 MB / 0.5484 GB, free: 10.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009468/0.5355, allocations: 0.7272 MB / 0.5491 GB, free: 9.949 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.5356, allocations: 12 kB / 0.5492 GB, free: 9.938 MB / 426.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002718/0.5383, allocations: 1.788 MB / 0.5509 GB, free: 8.133 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.5383, allocations: 4 kB / 0.5509 GB, free: 8.129 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.75e-05/0.5383, allocations: 32 kB / 0.5509 GB, free: 8.098 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005582/0.5389, allocations: 226.4 kB / 0.5512 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.5401, allocations: 387.6 kB / 0.5515 GB, free: 7.488 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001563/0.5417, allocations: 1.642 MB / 0.5531 GB, free: 5.723 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.5428, allocations: 99.47 kB / 0.5532 GB, free: 5.625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/0.5429, allocations: 91.98 kB / 0.5533 GB, free: 5.535 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * 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.0002056/0.5432, allocations: 172.2 kB / 0.5535 GB, free: 5.359 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/0.5433, allocations: 150.2 kB / 0.5536 GB, free: 5.211 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001569/0.5449, allocations: 0.9425 MB / 0.5545 GB, free: 4.254 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.5449, allocations: 7.906 kB / 0.5545 GB, free: 4.246 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.5449, allocations: 4 kB / 0.5546 GB, free: 4.242 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.545, allocations: 3.984 kB / 0.5546 GB, free: 4.238 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003907/0.5489, allocations: 2.392 MB / 0.5569 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.5489, allocations: 0 / 0.5569 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005682/0.5495, allocations: 119.9 kB / 0.557 GB, free: 1.652 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004582/0.5499, allocations: 162.4 kB / 0.5572 GB, free: 1.484 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.819e-05/0.55, allocations: 0 / 0.5572 GB, free: 1.484 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001435/0.5514, allocations: 1.588 MB / 0.5587 GB, free: 15.78 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5514, allocations: 0 / 0.5587 GB, free: 15.78 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001993/0.5534, allocations: 1.458 MB / 0.5601 GB, free: 14.28 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00262/0.5561, allocations: 2.314 MB / 0.5624 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004753/0.5566, allocations: 283.2 kB / 0.5627 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/0.5568, allocations: 3.984 kB / 0.5627 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006591/0.5574, allocations: 40.03 kB / 0.5627 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.448e-05/0.5575, allocations: 32.44 kB / 0.5627 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.755e-05/0.5576, allocations: 20 kB / 0.5628 GB, free: 11.54 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001194/0.5588, allocations: 0.8566 MB / 0.5636 GB, free: 10.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001914/0.5607, allocations: 343.8 kB / 0.5639 GB, free: 10.35 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 53 * 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 Backend phase and start with SimCode phase: time 0.0004333/0.5612, allocations: 355.4 kB / 0.5643 GB, free: 10 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001991/0.5632, allocations: 1.404 MB / 0.5656 GB, free: 8.551 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5632, allocations: 0 / 0.5656 GB, free: 8.551 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008444/0.564, allocations: 0.679 MB / 0.5663 GB, free: 7.82 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001262/0.5653, allocations: 301.2 kB / 0.5666 GB, free: 7.527 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00386/0.5692, allocations: 2.227 MB / 0.5688 GB, free: 5.254 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001445/0.5706, allocations: 1.614 MB / 0.5703 GB, free: 3.609 MB / 442.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5706, allocations: 0 / 0.5703 GB, free: 3.609 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.32 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat does not exist to compare? outputFormat=mat