Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",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.001463/0.001463, allocations: 176.9 kB / 8.349 MB, free: 0.6992 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.572/1.572, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.0008669/0.0008669, allocations: 97.72 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1644/0.1644, allocations: 38 MB / 348.1 MB, free: 7.762 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.42e-05/2.43e-05, allocations: 4 kB / 410.7 MB, free: 46.87 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1289, allocations: 56.32 MB / 467 MB, free: 6.48 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4018/0.5308, allocations: 98.63 MB / 0.5524 GB, free: 12.15 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/0.5312, allocations: 81.27 kB / 0.5524 GB, free: 12.07 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05407/0.5853, allocations: 19.15 MB / 0.5711 GB, free: 8.723 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5853, allocations: 0 / 0.5711 GB, free: 8.723 MB / 411.1 MB Notification: Performance of Transformations before backend: time 4.127e-05/0.5854, allocations: 20 kB / 0.5712 GB, free: 8.703 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.001606/0.587, allocations: 0.8968 MB / 0.572 GB, free: 7.758 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.587, allocations: 12.03 kB / 0.5721 GB, free: 7.746 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006078/0.5877, allocations: 138.9 kB / 0.5722 GB, free: 7.609 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001824/0.5895, allocations: 0.8673 MB / 0.573 GB, free: 6.695 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.983e-05/0.5895, allocations: 24 kB / 0.5731 GB, free: 6.672 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.661e-05/0.5896, allocations: 44 kB / 0.5731 GB, free: 6.629 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001087/0.5907, allocations: 0.6715 MB / 0.5738 GB, free: 5.957 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.5921, allocations: 0.9857 MB / 0.5747 GB, free: 4.871 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/0.5922, allocations: 3.938 kB / 0.5747 GB, free: 4.867 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.644e-05/0.5922, allocations: 4 kB / 0.5747 GB, free: 4.863 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.278e-05/0.5923, allocations: 45.98 kB / 0.5748 GB, free: 4.82 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004959/0.5973, allocations: 4.854 MB / 0.5795 GB, free: 15.74 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006232/0.5979, allocations: 373.8 kB / 0.5799 GB, free: 15.35 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.5982, allocations: 198.4 kB / 0.5801 GB, free: 15.15 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.892e-05/0.5983, allocations: 12.31 kB / 0.5801 GB, free: 15.14 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.5983, allocations: 50.81 kB / 0.5801 GB, free: 15.08 MB / 427.1 MB Notification: Performance of pre-optimization done (n=47): time 2.765e-06/0.5983, allocations: 0 / 0.5801 GB, free: 15.08 MB / 427.1 MB Notification: Performance of matching and sorting (n=48): time 0.001547/0.5999, allocations: 0.8927 MB / 0.581 GB, free: 14.18 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.5999, allocations: 81.11 kB / 0.5811 GB, free: 14.09 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004059/0.6004, allocations: 396.9 kB / 0.5814 GB, free: 13.7 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.6004, allocations: 25.7 kB / 0.5815 GB, free: 13.66 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003067/0.6007, allocations: 453.7 kB / 0.5819 GB, free: 13.21 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.6009, allocations: 165.6 kB / 0.5821 GB, free: 13.05 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.373e-05/0.6009, allocations: 0 / 0.5821 GB, free: 13.05 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.601, allocations: 366.8 kB / 0.5824 GB, free: 12.68 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.6013, allocations: 218 kB / 0.5826 GB, free: 12.47 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005299/0.6019, allocations: 0.5928 MB / 0.5832 GB, free: 11.7 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005192/0.6024, allocations: 355.6 kB / 0.5835 GB, free: 11.35 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/0.6024, allocations: 4 kB / 0.5835 GB, free: 11.34 MB / 427.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.001166/0.6036, allocations: 0.8019 MB / 0.5843 GB, free: 10.54 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.6036, allocations: 16.23 kB / 0.5843 GB, free: 10.52 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.6037, allocations: 16 kB / 0.5843 GB, free: 10.5 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.054e-05/0.6037, allocations: 20 kB / 0.5844 GB, free: 10.48 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006252/0.6043, allocations: 203.6 kB / 0.5846 GB, free: 10.29 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.145e-05/0.6044, allocations: 23.92 kB / 0.5846 GB, free: 10.26 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003502/0.6047, allocations: 35.92 kB / 0.5846 GB, free: 10.23 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.413e-05/0.6048, allocations: 36 kB / 0.5847 GB, free: 10.19 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (97): * Single equations (assignments): 95 * Array equations: 2 * 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.0001303/0.6049, allocations: 148.6 kB / 0.5848 GB, free: 10.04 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006828/0.6056, allocations: 472.6 kB / 0.5852 GB, free: 9.57 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.924e-05/0.6057, allocations: 55.28 kB / 0.5853 GB, free: 9.516 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008547/0.6065, allocations: 0.5185 MB / 0.5858 GB, free: 8.988 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-05/0.6066, allocations: 15.94 kB / 0.5858 GB, free: 8.973 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.6066, allocations: 4 kB / 0.5858 GB, free: 8.969 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.6066, allocations: 0 / 0.5858 GB, free: 8.969 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.6083, allocations: 1.206 MB / 0.587 GB, free: 7.695 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.6083, allocations: 4.25 kB / 0.587 GB, free: 7.691 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004107/0.6088, allocations: 111.9 kB / 0.5871 GB, free: 7.582 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.6088, allocations: 4 kB / 0.5871 GB, free: 7.578 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.6088, allocations: 4 kB / 0.5871 GB, free: 7.574 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-06/0.6088, allocations: 11.92 kB / 0.5871 GB, free: 7.562 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.6088, allocations: 8 kB / 0.5871 GB, free: 7.555 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007926/0.6096, allocations: 0.7583 MB / 0.5879 GB, free: 6.691 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.185e-05/0.6097, allocations: 132.4 kB / 0.588 GB, free: 6.543 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.6098, allocations: 4 kB / 0.588 GB, free: 6.539 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.61, allocations: 15.97 kB / 0.588 GB, free: 6.523 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.313e-05/0.6101, allocations: 39.91 kB / 0.5881 GB, free: 6.484 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.6101, allocations: 16 kB / 0.5881 GB, free: 6.469 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002679/0.6104, allocations: 286.9 kB / 0.5884 GB, free: 6.188 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6104, allocations: 0 / 0.5884 GB, free: 6.188 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0006657/0.6111, allocations: 152 kB / 0.5885 GB, free: 6.039 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (48): * Single equations (assignments): 45 * Array equations: 2 * 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.001386/0.6125, allocations: 1.948 MB / 0.5904 GB, free: 4.004 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0007681/0.6133, allocations: 0.5681 MB / 0.591 GB, free: 3.441 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.6133, allocations: 0 / 0.591 GB, free: 3.441 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002919/0.6136, allocations: 248.4 kB / 0.5912 GB, free: 3.199 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005241/0.6141, allocations: 89.98 kB / 0.5913 GB, free: 3.113 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002109/0.6162, allocations: 1.196 MB / 0.5924 GB, free: 1.844 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006032/0.6168, allocations: 1.013 MB / 0.5934 GB, free: 0.8047 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0005387/0.6174, allocations: 220.8 kB / 0.5936 GB, free: 0.5898 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003092/0.6177, allocations: 255.4 kB / 0.5939 GB, free: 348 kB / 427.1 MB Notification: Performance of SimCode: time 3.01e-07/0.6177, allocations: 0 / 0.5939 GB, free: 348 kB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03422/0.6519, allocations: 10.2 MB / 0.6038 GB, free: 6.152 MB / 443.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002483/0.6523, allocations: 139.5 kB / 0.604 GB, free: 5.953 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.347/2.999, allocations: 4 kB / 0.604 GB, free: 5.949 MB / 443.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat does not exist to compare? outputFormat=mat