Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_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.001106/0.001106, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.00129/0.00129, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.369/1.369, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.189/0.189, allocations: 38.02 MB / 329.7 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 64.31 kB / 398.9 MB, free: 33.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.105, allocations: 58.05 MB / 457 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.006734/0.1118, allocations: 4.514 MB / 461.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.1142, allocations: 1.402 MB / 462.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003008/0.1145, allocations: 11.94 kB / 462.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001/0.1155, allocations: 294.6 kB / 463.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008223/0.1164, allocations: 282.6 kB / 463.5 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007337/0.1171, allocations: 251.4 kB / 463.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008522/0.118, allocations: 0.6703 MB / 464.4 MB, free: 496 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004377/0.1184, allocations: 240.3 kB / 464.6 MB, free: 252 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005237/0.1189, allocations: 294.9 kB / 464.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005984/0.1196, allocations: 406.8 kB / 465.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.1197, allocations: 48 kB / 465.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004352/0.1201, allocations: 231.6 kB / 465.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.1204, allocations: 251.4 kB / 465.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003238/0.1207, allocations: 286.6 kB / 466.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008885/0.1216, allocations: 0.7399 MB / 466.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1216, allocations: 0 / 466.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1216, allocations: 0 / 466.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.175e-05/0.1216, allocations: 0 / 466.8 MB, free: 14.02 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.001627/0.1233, allocations: 0.8884 MB / 467.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.1233, allocations: 11.89 kB / 467.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.1234, allocations: 98.64 kB / 467.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005541/0.124, allocations: 96.2 kB / 467.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005725/0.1246, allocations: 412 kB / 468.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.1246, allocations: 25.38 kB / 468.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.268e-05/0.1247, allocations: 43.92 kB / 468.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.1258, allocations: 0.863 MB / 469.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/0.1259, allocations: 7.938 kB / 469.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.375e-05/0.1259, allocations: 16 kB / 469.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001354/0.1261, allocations: 60.94 kB / 469.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.1272, allocations: 0.7963 MB / 470.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003339/0.1306, allocations: 2.737 MB / 472.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008457/0.1314, allocations: 0.5759 MB / 473.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004869/0.1319, allocations: 458.7 kB / 473.9 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.132, allocations: 3.984 kB / 473.9 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.132, allocations: 38.56 kB / 473.9 MB, free: 6.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.294e-06/0.132, allocations: 0 / 473.9 MB, free: 6.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002681/0.1347, allocations: 1.879 MB / 475.8 MB, free: 4.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.169e-05/0.1348, allocations: 138.8 kB / 475.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000285/0.1351, allocations: 300.4 kB / 476.2 MB, free: 4.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.605e-05/0.1351, allocations: 29.7 kB / 476.3 MB, free: 4.172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.1353, allocations: 260.3 kB / 476.5 MB, free: 3.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.1354, allocations: 193.1 kB / 476.7 MB, free: 3.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.1356, allocations: 98.11 kB / 476.8 MB, free: 3.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1357, allocations: 354.9 kB / 477.2 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004199/0.1361, allocations: 340.9 kB / 477.5 MB, free: 2.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004943/0.1366, allocations: 492.8 kB / 478 MB, free: 2.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.1377, allocations: 0.976 MB / 478.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1377, allocations: 0 / 478.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001327/0.1391, allocations: 0.9843 MB / 479.9 MB, free: 352 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.66e-05/0.1391, allocations: 81.53 kB / 480 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.1392, allocations: 4 kB / 480 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001701/0.1393, allocations: 41.39 kB / 480.1 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/0.1397, allocations: 87.89 kB / 480.1 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/0.1409, allocations: 1.555 MB / 481.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003044/0.1412, allocations: 31.95 kB / 481.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.326e-05/0.1413, allocations: 31.92 kB / 481.8 MB, free: 14.37 MB / 366.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[3],voltage.h_mod3[2],voltage.h_mod3[1],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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000323/0.1416, allocations: 295.4 kB / 482 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.1417, allocations: 43.52 kB / 482.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001442/0.1432, allocations: 1.08 MB / 483.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.227e-05/0.1432, allocations: 12 kB / 483.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.1432, allocations: 0 / 483.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.1432, allocations: 3.984 kB / 483.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.1456, allocations: 1.796 MB / 485 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1457, allocations: 4.062 kB / 485 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/0.1459, allocations: 55.89 kB / 485 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001077/0.146, allocations: 36.84 kB / 485.1 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.145e-05/0.1461, allocations: 15.98 kB / 485.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.1472, allocations: 1.551 MB / 486.6 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.1472, allocations: 4.031 kB / 486.6 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.1487, allocations: 1.179 MB / 487.8 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002182/0.1489, allocations: 176.5 kB / 488 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.875e-05/0.149, allocations: 11.94 kB / 488 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.1492, allocations: 27.97 kB / 488 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.1494, allocations: 47.89 kB / 488.1 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.936e-05/0.1494, allocations: 19.98 kB / 488.1 MB, free: 7.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000191/0.1496, allocations: 207.1 kB / 488.3 MB, free: 7.516 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1496, allocations: 0 / 488.3 MB, free: 7.516 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005319/0.1502, allocations: 144 kB / 488.4 MB, free: 7.375 MB / 366.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001893/0.1521, allocations: 1.767 MB / 490.2 MB, free: 5.562 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001816/0.1539, allocations: 1.495 MB / 491.7 MB, free: 4.043 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1539, allocations: 0 / 491.7 MB, free: 4.043 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009551/0.1549, allocations: 0.9241 MB / 492.6 MB, free: 3.094 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005392/0.1554, allocations: 69.75 kB / 492.7 MB, free: 3.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007472/0.1629, allocations: 5.861 MB / 498.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007188/0.1637, allocations: 0.9015 MB / 499.5 MB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003718/0.1641, allocations: 107.2 kB / 499.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002606/0.1644, allocations: 155.4 kB / 499.7 MB, free: 11.76 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.1644, allocations: 0 / 499.7 MB, free: 11.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0891/0.2535, allocations: 10.04 MB / 0.4978 GB, free: 1.816 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.229/9.483, allocations: 0 / 0.4978 GB, free: 1.816 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1)