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.00102/0.00102, allocations: 180.4 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.213/1.213, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0008663/0.0008662, allocations: 96.23 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1562/0.1562, allocations: 38.07 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000268/0.0002683, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2258, allocations: 56.31 MB / 480.4 MB, free: 9.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.3428, allocations: 97.71 MB / 0.5646 GB, free: 4.711 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/0.3432, allocations: 99.94 kB / 0.5647 GB, free: 4.613 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02503/0.3682, allocations: 9.959 MB / 0.5744 GB, free: 10.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3682, allocations: 0 / 0.5744 GB, free: 10.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.443e-05/0.3683, allocations: 7.938 kB / 0.5744 GB, free: 10.54 MB / 410.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.0009484/0.3692, allocations: 0.6294 MB / 0.575 GB, free: 9.859 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3693, allocations: 12.03 kB / 0.575 GB, free: 9.848 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.709e-05/0.3694, allocations: 58.55 kB / 0.5751 GB, free: 9.781 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.54e-05/0.3695, allocations: 43.48 kB / 0.5751 GB, free: 9.738 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.3707, allocations: 0.6348 MB / 0.5757 GB, free: 9.059 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.3708, allocations: 20.56 kB / 0.5758 GB, free: 9.039 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.475e-05/0.3708, allocations: 24 kB / 0.5758 GB, free: 9.016 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004762/0.3713, allocations: 339 kB / 0.5761 GB, free: 8.645 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.3713, allocations: 0 / 0.5761 GB, free: 8.645 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.3714, allocations: 12 kB / 0.5761 GB, free: 8.633 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.3714, allocations: 8 kB / 0.5761 GB, free: 8.625 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.3717, allocations: 205.5 kB / 0.5763 GB, free: 8.426 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.3732, allocations: 1.497 MB / 0.5778 GB, free: 6.836 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003588/0.3735, allocations: 190.4 kB / 0.578 GB, free: 6.613 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.3736, allocations: 12.05 kB / 0.578 GB, free: 6.602 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.3736, allocations: 38.5 kB / 0.578 GB, free: 6.555 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 1.573e-06/0.3736, allocations: 0 / 0.578 GB, free: 6.555 MB / 410.7 MB Notification: Performance of matching and sorting (n=18): time 0.001023/0.3747, allocations: 0.6777 MB / 0.5787 GB, free: 5.824 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.3747, allocations: 132.5 kB / 0.5788 GB, free: 5.664 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.375, allocations: 288.7 kB / 0.5791 GB, free: 5.379 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.375, allocations: 33.64 kB / 0.5791 GB, free: 5.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.3751, allocations: 211.8 kB / 0.5793 GB, free: 5.129 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.918e-05/0.3752, allocations: 67.09 kB / 0.5794 GB, free: 5.062 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.16e-05/0.3752, allocations: 8 kB / 0.5794 GB, free: 5.055 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3753, allocations: 338.8 kB / 0.5797 GB, free: 4.715 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.013e-05/0.3754, allocations: 55.95 kB / 0.5798 GB, free: 4.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001283/0.3756, allocations: 140.9 kB / 0.5799 GB, free: 4.477 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.3757, allocations: 77.33 kB / 0.58 GB, free: 4.402 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3757, allocations: 0 / 0.58 GB, free: 4.402 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003375/0.3761, allocations: 260.8 kB / 0.5802 GB, free: 4.141 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.3761, allocations: 4.781 kB / 0.5802 GB, free: 4.137 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3761, allocations: 4 kB / 0.5802 GB, free: 4.133 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3761, allocations: 8.438 kB / 0.5802 GB, free: 4.125 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003395/0.3765, allocations: 83.86 kB / 0.5803 GB, free: 4.043 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007608/0.3772, allocations: 1.29 MB / 0.5816 GB, free: 2.625 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/0.3774, allocations: 8 kB / 0.5816 GB, free: 2.617 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.3774, allocations: 12 kB / 0.5816 GB, free: 2.605 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 () * Number of clocked 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.0001515/0.3776, allocations: 169.6 kB / 0.5817 GB, free: 2.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.159e-05/0.3777, allocations: 31.62 kB / 0.5818 GB, free: 2.398 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002884/0.378, allocations: 176.1 kB / 0.5819 GB, free: 2.223 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.378, allocations: 8.047 kB / 0.582 GB, free: 2.215 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.378, allocations: 11.92 kB / 0.582 GB, free: 2.203 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.378, allocations: 4 kB / 0.582 GB, free: 2.199 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007205/0.3787, allocations: 0.5334 MB / 0.5825 GB, free: 1.609 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.3787, allocations: 4 kB / 0.5825 GB, free: 1.605 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002203/0.379, allocations: 39.92 kB / 0.5825 GB, free: 1.566 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.379, allocations: 7.938 kB / 0.5825 GB, free: 1.559 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.379, allocations: 12 kB / 0.5825 GB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.379, allocations: 0 / 0.5825 GB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.379, allocations: 8 kB / 0.5826 GB, free: 1.539 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004345/0.3795, allocations: 0.5229 MB / 0.5831 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.805e-05/0.3795, allocations: 104.7 kB / 0.5832 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/0.3796, allocations: 8 kB / 0.5832 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.3798, allocations: 0 / 0.5832 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.01e-05/0.3798, allocations: 16.03 kB / 0.5832 GB, free: 0.832 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.3798, allocations: 7.984 kB / 0.5832 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00019/0.38, allocations: 219.1 kB / 0.5834 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.38, allocations: 0 / 0.5834 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003936/0.3804, allocations: 64 kB / 0.5835 GB, free: 0.5469 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 () * Number of clocked 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.0008287/0.3813, allocations: 1.298 MB / 0.5847 GB, free: 15.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003136/0.3816, allocations: 159.6 kB / 0.5849 GB, free: 15.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3816, allocations: 0 / 0.5849 GB, free: 15.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.3817, allocations: 72.84 kB / 0.585 GB, free: 14.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004875/0.3822, allocations: 81.56 kB / 0.585 GB, free: 14.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003443/0.3857, allocations: 4.177 MB / 0.5891 GB, free: 10.59 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/0.386, allocations: 0.8109 MB / 0.5899 GB, free: 9.75 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002107/0.3863, allocations: 54.92 kB / 0.59 GB, free: 9.699 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/0.3864, allocations: 111.4 kB / 0.5901 GB, free: 9.59 MB / 426.7 MB Notification: Performance of SimCode: time 3e-07/0.3864, allocations: 0 / 0.5901 GB, free: 9.59 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.4066, allocations: 6.82 MB / 0.5967 GB, free: 2.828 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/0.4069, allocations: 186.5 kB / 0.5969 GB, free: 2.586 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.798/2.205, allocations: 0 / 0.5969 GB, free: 2.586 MB / 426.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