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.001327/0.001327, allocations: 115.7 kB / 16.63 MB, free: 6.797 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.001256/0.001256, allocations: 186 kB / 17.55 MB, free: 5.953 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.337/1.337, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1741/0.1741, allocations: 38.03 MB / 329.4 MB, free: 8.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 64.5 kB / 398.4 MB, free: 34.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1407, allocations: 58.05 MB / 456.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.009703/0.1505, allocations: 5.166 MB / 461.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003737/0.1542, allocations: 1.581 MB / 463.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005625/0.1548, allocations: 27.81 kB / 463.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001175/0.156, allocations: 281.9 kB / 463.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009247/0.157, allocations: 262.9 kB / 463.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008524/0.1578, allocations: 231.6 kB / 464 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.1589, allocations: 0.6548 MB / 464.6 MB, free: 112 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005706/0.1595, allocations: 256.3 kB / 464.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005961/0.1601, allocations: 298.8 kB / 465.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007936/0.1609, allocations: 434.8 kB / 465.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.1611, allocations: 48 kB / 465.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005755/0.1616, allocations: 235.6 kB / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003231/0.162, allocations: 251.3 kB / 466.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004356/0.1624, allocations: 282.6 kB / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.1636, allocations: 0.7476 MB / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1636, allocations: 0 / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1637, allocations: 0 / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.001e-05/0.1637, allocations: 0 / 467.1 MB, free: 13.59 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.002587/0.1663, allocations: 0.8806 MB / 468 MB, free: 12.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.1664, allocations: 11.89 kB / 468 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000196/0.1666, allocations: 94.69 kB / 468.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008459/0.1674, allocations: 92.14 kB / 468.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009362/0.1684, allocations: 416 kB / 468.6 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.243e-05/0.1684, allocations: 33.38 kB / 468.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.1686, allocations: 51.83 kB / 468.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.1703, allocations: 0.8551 MB / 469.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/0.1704, allocations: 11.88 kB / 469.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.002e-05/0.1705, allocations: 23.97 kB / 469.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001925/0.1707, allocations: 60.95 kB / 469.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.1723, allocations: 0.7963 MB / 470.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00488/0.1772, allocations: 2.725 MB / 473.2 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.1784, allocations: 0.5873 MB / 473.8 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007429/0.1791, allocations: 446.7 kB / 474.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.542e-05/0.1792, allocations: 11.97 kB / 474.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.483e-05/0.1793, allocations: 38.56 kB / 474.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 4.428e-06/0.1793, allocations: 4 kB / 474.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.004098/0.1834, allocations: 1.879 MB / 476.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.1835, allocations: 134.8 kB / 476.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004322/0.184, allocations: 296.4 kB / 476.5 MB, free: 3.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.561e-05/0.184, allocations: 37.83 kB / 476.6 MB, free: 3.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.1843, allocations: 264.2 kB / 476.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/0.1845, allocations: 185.3 kB / 477 MB, free: 3.289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002473/0.1848, allocations: 98.02 kB / 477.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.185, allocations: 350.8 kB / 477.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006505/0.1857, allocations: 344.9 kB / 477.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008002/0.1865, allocations: 489.7 kB / 478.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001712/0.1882, allocations: 0.9877 MB / 479.3 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.1882, allocations: 4 kB / 479.3 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002073/0.1903, allocations: 0.9811 MB / 480.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001078/0.1904, allocations: 77.59 kB / 480.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.1905, allocations: 4 kB / 480.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002357/0.1907, allocations: 36.84 kB / 480.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005085/0.1912, allocations: 83.88 kB / 480.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002025/0.1933, allocations: 1.551 MB / 482 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000539/0.1938, allocations: 35.97 kB / 482 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.1939, allocations: 31.92 kB / 482.1 MB, free: 13.93 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.0005706/0.1945, allocations: 293.1 kB / 482.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.1947, allocations: 47.36 kB / 482.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002182/0.1969, allocations: 1.08 MB / 483.5 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-05/0.197, allocations: 12 kB / 483.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.197, allocations: 0 / 483.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.197, allocations: 11.94 kB / 483.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00346/0.2005, allocations: 1.796 MB / 485.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.2005, allocations: 4 kB / 485.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003804/0.2009, allocations: 47.97 kB / 485.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001667/0.2011, allocations: 44.77 kB / 485.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.635e-05/0.2011, allocations: 12.05 kB / 485.4 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001644/0.2028, allocations: 1.559 MB / 487 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.2028, allocations: 0 / 487 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.2049, allocations: 1.175 MB / 488.1 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003096/0.2052, allocations: 176.6 kB / 488.3 MB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.2053, allocations: 15.98 kB / 488.3 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003975/0.2058, allocations: 23.97 kB / 488.3 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/0.206, allocations: 47.89 kB / 488.4 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-05/0.206, allocations: 19.97 kB / 488.4 MB, free: 7.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003035/0.2064, allocations: 203.1 kB / 488.6 MB, free: 7.086 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2064, allocations: 0 / 488.6 MB, free: 7.086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008883/0.2073, allocations: 144 kB / 488.8 MB, free: 6.945 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.00259/0.2099, allocations: 1.763 MB / 490.5 MB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002538/0.2124, allocations: 1.487 MB / 492 MB, free: 3.621 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2124, allocations: 1.125 kB / 492 MB, free: 3.621 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/0.2138, allocations: 0.9319 MB / 492.9 MB, free: 2.664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007505/0.2145, allocations: 67.45 kB / 493 MB, free: 2.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0099/0.2245, allocations: 6.069 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006345/0.2251, allocations: 0.9015 MB / 500 MB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004336/0.2256, allocations: 111.2 kB / 0.4884 GB, free: 11.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002872/0.2259, allocations: 147.4 kB / 0.4885 GB, free: 11.13 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2259, allocations: 8 kB / 0.4885 GB, free: 11.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03483/0.2607, allocations: 10 MB / 0.4983 GB, free: 1.266 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003028/0.2611, allocations: 215.5 kB / 0.4985 GB, free: 1.012 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.129/2.39, allocations: 0 / 0.4985 GB, free: 1.012 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)