Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001908/0.001908, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.582/1.582, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2149/0.2149, allocations: 38.5 MB / 349.4 MB, free: 2.598 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002378/0.002378, allocations: 63.91 kB / 487.8 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1263, allocations: 62.41 MB / 0.5374 GB, free: 7.566 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.01026/0.1366, allocations: 4.09 MB / 0.5414 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002786/0.1394, allocations: 0.9348 MB / 0.5423 GB, free: 2.516 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000283/0.1397, allocations: 19.81 kB / 0.5423 GB, free: 2.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002468/0.1399, allocations: 43.56 kB / 0.5423 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006128/0.1405, allocations: 187 kB / 0.5425 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.1408, allocations: 95.75 kB / 0.5426 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006387/0.1414, allocations: 402.6 kB / 0.543 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003219/0.1418, allocations: 94.89 kB / 0.5431 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004311/0.1422, allocations: 191.2 kB / 0.5433 GB, free: 1.504 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004666/0.1427, allocations: 219.2 kB / 0.5435 GB, free: 1.289 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.878e-05/0.1427, allocations: 20 kB / 0.5435 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.57e-05/0.1428, allocations: 20 kB / 0.5435 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001798/0.143, allocations: 107.6 kB / 0.5436 GB, free: 1.145 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002202/0.1432, allocations: 155.1 kB / 0.5437 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000523/0.1437, allocations: 322.5 kB / 0.5441 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.1437, allocations: 0 / 0.5441 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1437, allocations: 4 kB / 0.5441 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.1437, allocations: 0 / 0.5441 GB, free: 0.6719 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001511/0.1452, allocations: 0.6243 MB / 0.5447 GB, free: 15.99 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.1453, allocations: 12.03 kB / 0.5447 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.523e-05/0.1453, allocations: 12.73 kB / 0.5447 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.592e-05/0.1454, allocations: 54.73 kB / 0.5447 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.786e-05/0.1455, allocations: 32.75 kB / 0.5448 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006812/0.1462, allocations: 347.2 kB / 0.5451 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.676e-05/0.1462, allocations: 16.69 kB / 0.5451 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.134e-05/0.1462, allocations: 24 kB / 0.5451 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006637/0.1469, allocations: 320.5 kB / 0.5455 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.1469, allocations: 7.922 kB / 0.5455 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.825e-05/0.147, allocations: 12 kB / 0.5455 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.147, allocations: 4 kB / 0.5455 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004945/0.1475, allocations: 213.5 kB / 0.5457 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.1497, allocations: 1.348 MB / 0.547 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00044/0.1501, allocations: 137.1 kB / 0.5471 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.1502, allocations: 57.75 kB / 0.5472 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.1503, allocations: 4 kB / 0.5472 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.513e-05/0.1503, allocations: 34.56 kB / 0.5472 GB, free: 13.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=12): time 2.715e-06/0.1503, allocations: 3.938 kB / 0.5472 GB, free: 13.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=13): time 0.001107/0.1514, allocations: 369.2 kB / 0.5476 GB, free: 12.8 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.323e-05/0.1515, allocations: 85.09 kB / 0.5477 GB, free: 12.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003572/0.1518, allocations: 262.9 kB / 0.5479 GB, free: 12.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/0.1519, allocations: 25.7 kB / 0.5479 GB, free: 12.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002024/0.1521, allocations: 208.1 kB / 0.5481 GB, free: 12.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.526e-05/0.1521, allocations: 55.58 kB / 0.5482 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.1523, allocations: 41.7 kB / 0.5482 GB, free: 12.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.1525, allocations: 338.8 kB / 0.5485 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.1526, allocations: 55.95 kB / 0.5486 GB, free: 11.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.1529, allocations: 160.7 kB / 0.5488 GB, free: 11.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004175/0.1533, allocations: 228.7 kB / 0.549 GB, free: 11.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1533, allocations: 0 / 0.549 GB, free: 11.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005529/0.1538, allocations: 245.5 kB / 0.5492 GB, free: 10.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.1538, allocations: 12.03 kB / 0.5492 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.1539, allocations: 4 kB / 0.5492 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.1539, allocations: 4 kB / 0.5492 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.1542, allocations: 51.91 kB / 0.5493 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.1542, allocations: 4 kB / 0.5493 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.1543, allocations: 15.89 kB / 0.5493 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.1544, allocations: 19.92 kB / 0.5493 GB, free: 10.87 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002151/0.1546, allocations: 161.6 kB / 0.5495 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.887e-05/0.1547, allocations: 23.86 kB / 0.5495 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004831/0.1551, allocations: 199.3 kB / 0.5497 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1551, allocations: 0 / 0.5497 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.1552, allocations: 8 kB / 0.5497 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.1552, allocations: 3.938 kB / 0.5497 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009496/0.1561, allocations: 0.5523 MB / 0.5502 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1561, allocations: 0 / 0.5502 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.1563, allocations: 27.98 kB / 0.5503 GB, free: 9.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.1563, allocations: 0 / 0.5503 GB, free: 9.828 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.1563, allocations: 15.97 kB / 0.5503 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.1563, allocations: 0 / 0.5503 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1563, allocations: 0 / 0.5503 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004801/0.1568, allocations: 292.9 kB / 0.5505 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.699e-05/0.1569, allocations: 104.9 kB / 0.5506 GB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.025e-05/0.157, allocations: 11.94 kB / 0.5507 GB, free: 9.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.1571, allocations: 11.92 kB / 0.5507 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.499e-05/0.1572, allocations: 11.98 kB / 0.5507 GB, free: 9.348 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.1572, allocations: 4 kB / 0.5507 GB, free: 9.344 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002403/0.1574, allocations: 186 kB / 0.5509 GB, free: 9.164 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1574, allocations: 0 / 0.5509 GB, free: 9.164 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004869/0.1579, allocations: 48 kB / 0.5509 GB, free: 9.117 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008896/0.1588, allocations: 0.8261 MB / 0.5517 GB, free: 8.262 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004181/0.1592, allocations: 156.5 kB / 0.5519 GB, free: 8.109 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.1592, allocations: 4 kB / 0.5519 GB, free: 8.105 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000162/0.1594, allocations: 71.95 kB / 0.5519 GB, free: 8.035 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000651/0.1601, allocations: 55.42 kB / 0.552 GB, free: 7.984 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004133/0.1642, allocations: 2.568 MB / 0.5545 GB, free: 5.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005752/0.1648, allocations: 0.7792 MB / 0.5553 GB, free: 4.426 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002142/0.165, allocations: 42.27 kB / 0.5553 GB, free: 4.387 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/0.1652, allocations: 95.39 kB / 0.5554 GB, free: 4.293 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1652, allocations: 0 / 0.5554 GB, free: 4.293 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.1919, allocations: 5.014 MB / 0.5603 GB, free: 15.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.594/8.786, allocations: 10.55 kB / 0.5603 GB, free: 15.41 MB / 430.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.97393568197731]