Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.0009736/0.0009736, allocations: 180.9 kB / 16.39 MB, free: 5.766 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.188/1.188, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008009/0.0008008, allocations: 88.16 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1582/0.1582, allocations: 38.07 MB / 357.2 MB, free: 1.898 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002972/0.0002971, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2681, allocations: 56.32 MB / 480.4 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1233/0.3915, allocations: 99.52 MB / 0.5663 GB, free: 2.887 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.3918, allocations: 99.94 kB / 0.5664 GB, free: 2.789 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02818/0.42, allocations: 11.41 MB / 0.5776 GB, free: 7.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4201, allocations: 448 / 0.5776 GB, free: 7.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.038e-05/0.4201, allocations: 11.94 kB / 0.5776 GB, free: 7.219 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001035/0.4212, allocations: 0.6684 MB / 0.5782 GB, free: 6.504 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.4212, allocations: 12.03 kB / 0.5783 GB, free: 6.492 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.015e-05/0.4213, allocations: 70.53 kB / 0.5783 GB, free: 6.414 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.05e-05/0.4214, allocations: 47.48 kB / 0.5784 GB, free: 6.367 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.4225, allocations: 0.5695 MB / 0.5789 GB, free: 5.754 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.511e-05/0.4226, allocations: 58.7 kB / 0.579 GB, free: 5.691 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.4227, allocations: 43.89 kB / 0.579 GB, free: 5.648 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006382/0.4233, allocations: 433.8 kB / 0.5794 GB, free: 5.176 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.4234, allocations: 11.94 kB / 0.5794 GB, free: 5.164 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.338e-05/0.4234, allocations: 12 kB / 0.5795 GB, free: 5.152 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.4234, allocations: 8 kB / 0.5795 GB, free: 5.145 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004597/0.4239, allocations: 273.9 kB / 0.5797 GB, free: 4.879 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.4259, allocations: 1.876 MB / 0.5816 GB, free: 2.883 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.4263, allocations: 191.6 kB / 0.5817 GB, free: 2.668 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.4263, allocations: 3.938 kB / 0.5817 GB, free: 2.664 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.4263, allocations: 34.62 kB / 0.5818 GB, free: 2.621 MB / 410.7 MB Notification: Performance of pre-optimization done (n=18): time 1.673e-06/0.4263, allocations: 0 / 0.5818 GB, free: 2.621 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.001216/0.4275, allocations: 0.7309 MB / 0.5825 GB, free: 1.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.286e-05/0.4276, allocations: 107.1 kB / 0.5826 GB, free: 1.711 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.4279, allocations: 275.7 kB / 0.5829 GB, free: 1.438 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.4279, allocations: 25.7 kB / 0.5829 GB, free: 1.406 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.428, allocations: 247.5 kB / 0.5831 GB, free: 1.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.051e-05/0.4281, allocations: 67 kB / 0.5832 GB, free: 1.094 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.522e-05/0.4281, allocations: 12 kB / 0.5832 GB, free: 1.082 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.4282, allocations: 342.8 kB / 0.5835 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.4284, allocations: 76.61 kB / 0.5836 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.4286, allocations: 197.7 kB / 0.5838 GB, free: 416 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001907/0.4288, allocations: 116.8 kB / 0.5839 GB, free: 300 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4288, allocations: 0 / 0.5839 GB, free: 300 kB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005161/0.4293, allocations: 339.6 kB / 0.5842 GB, free: 15.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.4294, allocations: 7.953 kB / 0.5842 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.4294, allocations: 8 kB / 0.5842 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.4294, allocations: 4 kB / 0.5842 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.4297, allocations: 88.39 kB / 0.5843 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.4297, allocations: 8 kB / 0.5843 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001818/0.4299, allocations: 12 kB / 0.5843 GB, free: 15.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.43, allocations: 19.98 kB / 0.5844 GB, free: 15.81 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000169/0.4301, allocations: 181.6 kB / 0.5845 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.8e-05/0.4302, allocations: 35.61 kB / 0.5846 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003832/0.4306, allocations: 208.6 kB / 0.5848 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.4306, allocations: 0 / 0.5848 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.4306, allocations: 4 kB / 0.5848 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.4306, allocations: 0 / 0.5848 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008608/0.4315, allocations: 0.6297 MB / 0.5854 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.4315, allocations: 3.938 kB / 0.5854 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002382/0.4317, allocations: 51.94 kB / 0.5854 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.4318, allocations: 0 / 0.5854 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.4318, allocations: 8 kB / 0.5854 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4318, allocations: 0 / 0.5854 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4318, allocations: 0 / 0.5854 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005669/0.4324, allocations: 0.497 MB / 0.5859 GB, free: 14.08 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.703e-05/0.4325, allocations: 100.7 kB / 0.586 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.4325, allocations: 8 kB / 0.586 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.4327, allocations: 12.03 kB / 0.586 GB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.875e-05/0.4327, allocations: 15.94 kB / 0.5861 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.4328, allocations: 8 kB / 0.5861 GB, free: 13.92 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001772/0.433, allocations: 215.1 kB / 0.5863 GB, free: 13.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.433, allocations: 0 / 0.5863 GB, free: 13.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003973/0.4334, allocations: 87.92 kB / 0.5864 GB, free: 13.62 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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.0009129/0.4343, allocations: 1.252 MB / 0.5876 GB, free: 12.33 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003879/0.4347, allocations: 203.6 kB / 0.5878 GB, free: 12.13 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4347, allocations: 4 kB / 0.5878 GB, free: 12.12 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000155/0.4349, allocations: 88.95 kB / 0.5879 GB, free: 12.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004794/0.4353, allocations: 77.52 kB / 0.5879 GB, free: 11.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003986/0.4393, allocations: 4.975 MB / 0.5928 GB, free: 6.848 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.4397, allocations: 0.8266 MB / 0.5936 GB, free: 5.996 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002277/0.4399, allocations: 59.23 kB / 0.5937 GB, free: 5.938 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.4401, allocations: 115.4 kB / 0.5938 GB, free: 5.824 MB / 426.7 MB Notification: Performance of SimCode: time 5e-07/0.4401, allocations: 4 kB / 0.5938 GB, free: 5.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/0.4592, allocations: 6.879 MB / 0.6005 GB, free: 15 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.4594, allocations: 177.5 kB / 0.6007 GB, free: 14.76 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.978/2.437, allocations: 0 / 0.6007 GB, free: 14.76 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat does not exist to compare? outputFormat=mat