Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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 3.2.3+maint.om/package.mo): time 0.001485/0.001486, allocations: 181.8 kB / 8.134 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.329/1.329, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009009/0.0009008, allocations: 86.95 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.171/0.171, allocations: 37.97 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1947/0.3658, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.482, allocations: 56.32 MB / 466.4 MB, free: 6.375 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3612/0.8432, allocations: 96.92 MB / 0.5501 GB, free: 13.58 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.8436, allocations: 91.94 kB / 0.5502 GB, free: 13.49 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.02867/0.8722, allocations: 10.14 MB / 0.5601 GB, free: 3.219 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/0.8723, allocations: 8 kB / 0.5601 GB, free: 3.211 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001627/0.8725, allocations: 43.53 kB / 0.5602 GB, free: 3.168 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/0.8742, allocations: 0.6083 MB / 0.5608 GB, free: 2.523 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.8742, allocations: 8 kB / 0.5608 GB, free: 2.516 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.884e-05/0.8743, allocations: 16 kB / 0.5608 GB, free: 2.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004037/0.8747, allocations: 177.2 kB / 0.561 GB, free: 2.324 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004627/0.8752, allocations: 299 kB / 0.5612 GB, free: 1.992 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.8752, allocations: 15.78 kB / 0.5613 GB, free: 1.977 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.568e-05/0.8753, allocations: 0 / 0.5613 GB, free: 1.977 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.8753, allocations: 12 kB / 0.5613 GB, free: 1.965 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.8769, allocations: 1.415 MB / 0.5626 GB, free: 476 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.8772, allocations: 149.6 kB / 0.5628 GB, free: 292 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.8773, allocations: 73.55 kB / 0.5629 GB, free: 208 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/0.8773, allocations: 4 kB / 0.5629 GB, free: 204 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.292e-05/0.8774, allocations: 38.56 kB / 0.5629 GB, free: 156 kB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 2.454e-06/0.8774, allocations: 0 / 0.5629 GB, free: 156 kB / 394.7 MB Notification: Performance of matching and sorting (n=18): time 0.001107/0.8785, allocations: 0.5973 MB / 0.5635 GB, free: 15.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.451e-05/0.8786, allocations: 140.4 kB / 0.5636 GB, free: 15.33 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.8788, allocations: 227.6 kB / 0.5638 GB, free: 15.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.8789, allocations: 29.8 kB / 0.5639 GB, free: 15.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.856e-05/0.879, allocations: 183.8 kB / 0.564 GB, free: 14.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.102e-05/0.879, allocations: 63.11 kB / 0.5641 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-06/0.879, allocations: 0 / 0.5641 GB, free: 14.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.8792, allocations: 338.8 kB / 0.5644 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.798e-05/0.8793, allocations: 43.98 kB / 0.5645 GB, free: 14.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.8795, allocations: 148.8 kB / 0.5646 GB, free: 14.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001285/0.8796, allocations: 66.64 kB / 0.5647 GB, free: 14.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.8796, allocations: 3.906 kB / 0.5647 GB, free: 14.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003615/0.88, allocations: 225 kB / 0.5649 GB, free: 13.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.88, allocations: 8 kB / 0.5649 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.88, allocations: 0 / 0.5649 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.88, allocations: 8 kB / 0.5649 GB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004042/0.8805, allocations: 75.84 kB / 0.565 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008295/0.8813, allocations: 1.235 MB / 0.5662 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001519/0.8815, allocations: 4.156 kB / 0.5662 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.8815, allocations: 16 kB / 0.5662 GB, free: 12.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.8816, allocations: 112.9 kB / 0.5663 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.15e-05/0.8817, allocations: 31.62 kB / 0.5663 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003318/0.882, allocations: 172.1 kB / 0.5665 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.8821, allocations: 4 kB / 0.5665 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.8821, allocations: 7.844 kB / 0.5665 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.8821, allocations: 0 / 0.5665 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006966/0.8828, allocations: 0.4917 MB / 0.567 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.8828, allocations: 0 / 0.567 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.883, allocations: 35.98 kB / 0.567 GB, free: 11.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.8831, allocations: 7.938 kB / 0.567 GB, free: 11.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.8831, allocations: 0 / 0.567 GB, free: 11.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.8831, allocations: 4 kB / 0.567 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.8831, allocations: 4 kB / 0.567 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004958/0.8836, allocations: 0.4962 MB / 0.5675 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007118/0.8843, allocations: 0.9415 MB / 0.5684 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.315e-05/0.8844, allocations: 100.7 kB / 0.5685 GB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.792e-05/0.8845, allocations: 0 / 0.5685 GB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.8847, allocations: 8 kB / 0.5685 GB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.601e-05/0.8847, allocations: 7.984 kB / 0.5686 GB, free: 9.918 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.8847, allocations: 11.91 kB / 0.5686 GB, free: 9.906 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000172/0.8849, allocations: 179.1 kB / 0.5687 GB, free: 9.734 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001008/0.8859, allocations: 64.23 kB / 0.5688 GB, free: 9.672 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000225/0.8862, allocations: 131.9 kB / 0.5689 GB, free: 9.531 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003497/0.8865, allocations: 144.2 kB / 0.5691 GB, free: 9.391 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.8865, allocations: 0 / 0.5691 GB, free: 9.391 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.8867, allocations: 67.86 kB / 0.5691 GB, free: 9.324 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000539/0.8872, allocations: 62.28 kB / 0.5692 GB, free: 9.266 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.8884, allocations: 0.58 MB / 0.5698 GB, free: 8.652 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004848/0.8889, allocations: 0.8414 MB / 0.5706 GB, free: 7.781 MB / 410.7 MB Notification: Performance of SimCode: time 3.31e-07/0.8889, allocations: 3.938 kB / 0.5706 GB, free: 7.777 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat does not exist to compare? outputFormat=mat