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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00115/0.001151, allocations: 176.4 kB / 8.346 MB, free: 0.7266 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.646/1.646, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009242/0.0009244, allocations: 82.22 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1865/0.1865, allocations: 37.99 MB / 348 MB, free: 7.762 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.731e-05/1.733e-05, allocations: 0 / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1151, allocations: 56.33 MB / 467 MB, free: 6.473 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4399/0.555, allocations: 96.94 MB / 0.5507 GB, free: 13.93 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.5554, allocations: 91.95 kB / 0.5508 GB, free: 13.84 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02652/0.5819, allocations: 9.82 MB / 0.5604 GB, free: 3.941 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.5819, allocations: 0 / 0.5604 GB, free: 3.941 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.614e-05/0.582, allocations: 12 kB / 0.5604 GB, free: 3.93 MB / 395.1 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.0009192/0.5829, allocations: 0.5861 MB / 0.561 GB, free: 3.301 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.583, allocations: 8.031 kB / 0.561 GB, free: 3.293 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.424e-05/0.5831, allocations: 47.42 kB / 0.561 GB, free: 3.246 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/0.5844, allocations: 0.6153 MB / 0.5616 GB, free: 2.59 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.5844, allocations: 8 kB / 0.5616 GB, free: 2.582 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.5845, allocations: 16 kB / 0.5617 GB, free: 2.566 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003564/0.5848, allocations: 173 kB / 0.5618 GB, free: 2.398 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004405/0.5853, allocations: 290 kB / 0.5621 GB, free: 2.074 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.5853, allocations: 4 kB / 0.5621 GB, free: 2.07 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.5853, allocations: 4 kB / 0.5621 GB, free: 2.066 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.5854, allocations: 11.94 kB / 0.5621 GB, free: 2.055 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001538/0.5869, allocations: 1.427 MB / 0.5635 GB, free: 0.543 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003711/0.5873, allocations: 183.2 kB / 0.5637 GB, free: 336 kB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.5874, allocations: 68 kB / 0.5637 GB, free: 256 kB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.5874, allocations: 4 kB / 0.5638 GB, free: 252 kB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.5875, allocations: 42.48 kB / 0.5638 GB, free: 200 kB / 395.1 MB Notification: Performance of pre-optimization done (n=17): time 1.743e-06/0.5875, allocations: 0 / 0.5638 GB, free: 200 kB / 395.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009963/0.5885, allocations: 0.6016 MB / 0.5644 GB, free: 15.54 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.095e-05/0.5886, allocations: 136.5 kB / 0.5645 GB, free: 15.38 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002494/0.5888, allocations: 237.1 kB / 0.5647 GB, free: 15.13 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.5889, allocations: 25.7 kB / 0.5648 GB, free: 15.1 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.589, allocations: 219.8 kB / 0.565 GB, free: 14.88 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.059e-05/0.5891, allocations: 67.19 kB / 0.565 GB, free: 14.82 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.878e-06/0.5891, allocations: 0 / 0.565 GB, free: 14.82 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.5892, allocations: 338.8 kB / 0.5654 GB, free: 14.48 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.911e-05/0.5893, allocations: 47.97 kB / 0.5654 GB, free: 14.43 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.5895, allocations: 140.9 kB / 0.5655 GB, free: 14.25 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.5896, allocations: 67.91 kB / 0.5656 GB, free: 14.18 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5896, allocations: 0 / 0.5656 GB, free: 14.18 MB / 411.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003396/0.5899, allocations: 227.3 kB / 0.5658 GB, free: 13.95 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.59, allocations: 5.719 kB / 0.5658 GB, free: 13.95 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.59, allocations: 7.938 kB / 0.5658 GB, free: 13.94 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.59, allocations: 7.984 kB / 0.5658 GB, free: 13.93 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003417/0.5904, allocations: 75.91 kB / 0.5659 GB, free: 13.86 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009514/0.5913, allocations: 1.231 MB / 0.5671 GB, free: 12.52 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.5915, allocations: 15.84 kB / 0.5671 GB, free: 12.5 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.5915, allocations: 12 kB / 0.5671 GB, free: 12.49 MB / 411.1 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.0001136/0.5916, allocations: 104.9 kB / 0.5672 GB, free: 12.38 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000264/0.5919, allocations: 157.4 kB / 0.5674 GB, free: 12.22 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.963e-05/0.592, allocations: 35.62 kB / 0.5674 GB, free: 12.19 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002935/0.5923, allocations: 160.8 kB / 0.5676 GB, free: 12.02 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.5923, allocations: 3.953 kB / 0.5676 GB, free: 12.02 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.5923, allocations: 4 kB / 0.5676 GB, free: 12.01 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.5923, allocations: 3.984 kB / 0.5676 GB, free: 12.01 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006992/0.593, allocations: 0.4951 MB / 0.5681 GB, free: 11.47 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.593, allocations: 0 / 0.5681 GB, free: 11.47 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.5933, allocations: 47.97 kB / 0.5681 GB, free: 11.42 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.5933, allocations: 3.938 kB / 0.5681 GB, free: 11.42 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.5933, allocations: 3.953 kB / 0.5681 GB, free: 11.41 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.5933, allocations: 4 kB / 0.5681 GB, free: 11.41 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.5933, allocations: 0 / 0.5681 GB, free: 11.41 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004465/0.5938, allocations: 0.5035 MB / 0.5686 GB, free: 10.87 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.416e-05/0.5939, allocations: 100.7 kB / 0.5687 GB, free: 10.75 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.5939, allocations: 0 / 0.5687 GB, free: 10.75 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001745/0.5941, allocations: 4 kB / 0.5687 GB, free: 10.75 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.14e-05/0.5941, allocations: 19.97 kB / 0.5687 GB, free: 10.73 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.5941, allocations: 7.984 kB / 0.5687 GB, free: 10.72 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001631/0.5943, allocations: 180.6 kB / 0.5689 GB, free: 10.54 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5943, allocations: 0 / 0.5689 GB, free: 10.54 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0004469/0.5948, allocations: 55.98 kB / 0.569 GB, free: 10.49 MB / 411.1 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.0009551/0.5957, allocations: 1.268 MB / 0.5702 GB, free: 9.18 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0003145/0.5961, allocations: 140.5 kB / 0.5703 GB, free: 9.043 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5961, allocations: 8.062 kB / 0.5704 GB, free: 9.035 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 9.576e-05/0.5962, allocations: 63.86 kB / 0.5704 GB, free: 8.973 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.5967, allocations: 61.17 kB / 0.5705 GB, free: 8.914 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.5982, allocations: 0.6619 MB / 0.5711 GB, free: 8.211 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004358/0.5986, allocations: 0.8068 MB / 0.5719 GB, free: 7.379 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0001846/0.5988, allocations: 51.23 kB / 0.572 GB, free: 7.324 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.599, allocations: 103.4 kB / 0.5721 GB, free: 7.223 MB / 411.1 MB Notification: Performance of SimCode: time 2.61e-07/0.599, allocations: 0 / 0.5721 GB, free: 7.223 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02612/0.6251, allocations: 5.463 MB / 0.5774 GB, free: 1.77 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/0.6254, allocations: 144.2 kB / 0.5775 GB, free: 1.578 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.072/2.697, allocations: 0 / 0.5775 GB, free: 1.578 MB / 411.1 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