Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 88.53 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 223.2 MB / 241.2 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3376/0.3376, allocations: 38.08 MB / 330.4 MB, free: 14.18 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003317, allocations: 8 kB / 400.2 MB, free: 9.176 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3249, allocations: 59.16 MB / 459.3 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.005747/0.3308, allocations: 4.552 MB / 463.9 MB, free: 27.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002991/0.3338, allocations: 1.493 MB / 465.4 MB, free: 26.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004143/0.3342, allocations: 26.16 kB / 465.4 MB, free: 26.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000423/0.3347, allocations: 78.42 kB / 465.5 MB, free: 26.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001153/0.3359, allocations: 303.9 kB / 465.8 MB, free: 25.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.3371, allocations: 240.6 kB / 466 MB, free: 25.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001775/0.3389, allocations: 0.7822 MB / 466.8 MB, free: 25.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001112/0.34, allocations: 393.9 kB / 467.2 MB, free: 25.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008016/0.3408, allocations: 239.9 kB / 467.4 MB, free: 25.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001167/0.342, allocations: 412.1 kB / 467.8 MB, free: 25.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.3421, allocations: 26.53 kB / 467.8 MB, free: 25.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007623/0.3429, allocations: 165.2 kB / 468 MB, free: 25.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004432/0.3434, allocations: 237 kB / 468.2 MB, free: 24.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002241/0.3436, allocations: 120 kB / 468.3 MB, free: 24.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001196/0.3448, allocations: 0.5296 MB / 468.9 MB, free: 24.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.919e-06/0.3448, allocations: 1.922 kB / 468.9 MB, free: 24.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.337e-06/0.3448, allocations: 0 / 468.9 MB, free: 24.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.3449, allocations: 0 / 468.9 MB, free: 24.77 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002143/0.347, allocations: 0.7965 MB / 469.7 MB, free: 24.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.483e-05/0.3471, allocations: 9.156 kB / 469.7 MB, free: 24.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001906/0.3473, allocations: 92.47 kB / 469.8 MB, free: 24.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008382/0.3482, allocations: 92.69 kB / 469.9 MB, free: 24.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009152/0.3491, allocations: 409.3 kB / 470.3 MB, free: 23.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.599e-05/0.3492, allocations: 34.17 kB / 470.3 MB, free: 23.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.3493, allocations: 39.09 kB / 470.3 MB, free: 23.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002109/0.3514, allocations: 0.865 MB / 471.2 MB, free: 23.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/0.3515, allocations: 8.969 kB / 471.2 MB, free: 23.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.152e-05/0.3516, allocations: 14.28 kB / 471.2 MB, free: 23.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002224/0.3518, allocations: 58.55 kB / 471.3 MB, free: 23.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.3538, allocations: 0.797 MB / 472.1 MB, free: 23.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005554/0.3593, allocations: 2.722 MB / 474.8 MB, free: 21.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.3609, allocations: 0.5827 MB / 475.4 MB, free: 20.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009094/0.3618, allocations: 456.6 kB / 475.8 MB, free: 20.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.597e-05/0.3619, allocations: 16.25 kB / 475.8 MB, free: 20.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.3619, allocations: 36.78 kB / 475.9 MB, free: 20.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 4.829e-06/0.362, allocations: 0 / 475.9 MB, free: 20.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.004835/0.3668, allocations: 1.902 MB / 477.8 MB, free: 19.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.826e-05/0.3669, allocations: 133.5 kB / 477.9 MB, free: 19.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004863/0.3674, allocations: 296.3 kB / 478.2 MB, free: 19.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.058e-05/0.3675, allocations: 31.55 kB / 478.2 MB, free: 19.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001896/0.3677, allocations: 258.4 kB / 478.5 MB, free: 19.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.368, allocations: 189.3 kB / 478.7 MB, free: 18.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.886e-05/0.368, allocations: 6.531 kB / 478.7 MB, free: 18.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.3681, allocations: 354.6 kB / 479 MB, free: 18.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008464/0.369, allocations: 344.8 kB / 479.4 MB, free: 18.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000936/0.37, allocations: 490 kB / 479.8 MB, free: 18.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.3711, allocations: 460.7 kB / 480.3 MB, free: 17.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.896e-06/0.3711, allocations: 2.062 kB / 480.3 MB, free: 17.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00273/0.3738, allocations: 0.9752 MB / 481.3 MB, free: 17.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.374, allocations: 80.41 kB / 481.3 MB, free: 17.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.165e-05/0.374, allocations: 8.656 kB / 481.4 MB, free: 17.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003031/0.3744, allocations: 47.88 kB / 481.4 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006318/0.375, allocations: 83.17 kB / 481.5 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.3766, allocations: 1.445 MB / 482.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005914/0.3772, allocations: 31.97 kB / 483 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.3773, allocations: 24 kB / 483 MB, free: 15.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006174/0.3779, allocations: 303.2 kB / 483.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/0.3781, allocations: 43.44 kB / 483.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002287/0.3804, allocations: 1.081 MB / 484.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.609e-05/0.3805, allocations: 8 kB / 484.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.3805, allocations: 7.984 kB / 484.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3805, allocations: 0 / 484.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00379/0.3844, allocations: 1.796 MB / 486.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.3844, allocations: 8.062 kB / 486.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004056/0.3848, allocations: 51.95 kB / 486.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001878/0.385, allocations: 36.97 kB / 486.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.764e-05/0.3851, allocations: 15.98 kB / 486.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.3865, allocations: 1.437 MB / 487.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3865, allocations: 3.984 kB / 487.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002221/0.3888, allocations: 1.183 MB / 488.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000331/0.3891, allocations: 172.6 kB / 489.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.3892, allocations: 15.98 kB / 489.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004509/0.3897, allocations: 27.91 kB / 489.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.3899, allocations: 43.94 kB / 489.2 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.329e-05/0.39, allocations: 20 kB / 489.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003097/0.3903, allocations: 195.1 kB / 489.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3903, allocations: 4 kB / 489.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001112/0.3915, allocations: 140 kB / 489.5 MB, free: 8.867 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00258/0.3941, allocations: 1.755 MB / 491.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002444/0.3965, allocations: 1.366 MB / 492.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.3966, allocations: 0 / 492.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.398, allocations: 0.9397 MB / 493.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009566/0.399, allocations: 67.12 kB / 493.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007702/0.4067, allocations: 3.93 MB / 497.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006755/0.4074, allocations: 0.9094 MB / 498.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006316/0.4081, allocations: 103.2 kB / 498.6 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004618/0.4085, allocations: 151.4 kB / 498.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of SimCode: time 1.724e-06/0.4086, allocations: 0 / 498.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.4369, allocations: 9.647 MB / 0.4965 GB, free: 5.957 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/0.4371, allocations: 201 kB / 0.4967 GB, free: 5.723 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.376, allocations: 3.938 kB / 0.4967 GB, free: 5.719 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat does not exist to compare? outputFormat=mat