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.001842/0.001842, allocations: 123 kB / 17.79 MB, free: 5.246 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.002419/0.002419, allocations: 211.2 kB / 20.75 MB, free: 2.293 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.599/1.599, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2389/0.2389, allocations: 38.52 MB / 348.7 MB, free: 2.641 MB / 270.1 MB " [Timeout remaining time 180] 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.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",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.002229/0.002229, allocations: 67.89 kB / 487.2 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1269, allocations: 62.42 MB / 0.5367 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005835/0.1327, allocations: 4.086 MB / 0.5407 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.1343, allocations: 0.9347 MB / 0.5416 GB, free: 2.496 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.1344, allocations: 19.81 kB / 0.5416 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002231/0.1347, allocations: 47.56 kB / 0.5417 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005234/0.1352, allocations: 183 kB / 0.5418 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.1354, allocations: 95.81 kB / 0.5419 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005262/0.136, allocations: 402.5 kB / 0.5423 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002354/0.1362, allocations: 102.2 kB / 0.5424 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003736/0.1366, allocations: 187.2 kB / 0.5426 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003571/0.1369, allocations: 211.2 kB / 0.5428 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.754e-05/0.137, allocations: 20 kB / 0.5428 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.855e-05/0.137, allocations: 20 kB / 0.5428 GB, free: 1.234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.1372, allocations: 111.6 kB / 0.5429 GB, free: 1.125 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.1373, allocations: 151.2 kB / 0.5431 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004191/0.1377, allocations: 318.6 kB / 0.5434 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1377, allocations: 4 kB / 0.5434 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1377, allocations: 0 / 0.5434 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1378, allocations: 0 / 0.5434 GB, free: 0.6602 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.001222/0.139, allocations: 0.6283 MB / 0.544 GB, free: 15.97 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.139, allocations: 8.031 kB / 0.544 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.662e-05/0.1391, allocations: 66.67 kB / 0.5441 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.933e-05/0.1392, allocations: 32.75 kB / 0.5441 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004929/0.1397, allocations: 343.2 kB / 0.5444 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.1397, allocations: 24.69 kB / 0.5445 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/0.1397, allocations: 20 kB / 0.5445 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000471/0.1402, allocations: 320.5 kB / 0.5448 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.1402, allocations: 4 kB / 0.5448 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.437e-05/0.1402, allocations: 4 kB / 0.5448 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/0.1402, allocations: 8 kB / 0.5448 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003663/0.1406, allocations: 217.5 kB / 0.545 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001616/0.1422, allocations: 1.344 MB / 0.5463 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.1426, allocations: 145.1 kB / 0.5464 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.79e-05/0.1427, allocations: 53.75 kB / 0.5465 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.1427, allocations: 4 kB / 0.5465 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.1427, allocations: 38.56 kB / 0.5465 GB, free: 13.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=12): time 1.312e-06/0.1427, allocations: 0 / 0.5465 GB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008015/0.1435, allocations: 372.5 kB / 0.5469 GB, free: 12.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.1436, allocations: 81.05 kB / 0.547 GB, free: 12.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/0.1438, allocations: 262.9 kB / 0.5472 GB, free: 12.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.1439, allocations: 33.7 kB / 0.5473 GB, free: 12.39 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.144, allocations: 204 kB / 0.5475 GB, free: 12.19 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.628e-05/0.1441, allocations: 47.64 kB / 0.5475 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.587e-05/0.1442, allocations: 53.66 kB / 0.5475 GB, free: 12.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002206/0.1444, allocations: 338.8 kB / 0.5479 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.1445, allocations: 51.97 kB / 0.5479 GB, free: 11.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.1447, allocations: 152.8 kB / 0.5481 GB, free: 11.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003063/0.145, allocations: 233.4 kB / 0.5483 GB, free: 11.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.145, allocations: 4 kB / 0.5483 GB, free: 11.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003915/0.1454, allocations: 249.1 kB / 0.5485 GB, free: 10.97 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.1454, allocations: 12.38 kB / 0.5485 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1454, allocations: 4 kB / 0.5485 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.1454, allocations: 8 kB / 0.5486 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.1456, allocations: 47.91 kB / 0.5486 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.1456, allocations: 4 kB / 0.5486 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.1457, allocations: 15.89 kB / 0.5486 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.974e-05/0.1458, allocations: 11.98 kB / 0.5486 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.0001618/0.1459, allocations: 165.6 kB / 0.5488 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.246e-05/0.146, allocations: 23.84 kB / 0.5488 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003619/0.1463, allocations: 199.3 kB / 0.549 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1464, allocations: 4 kB / 0.549 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1464, allocations: 0 / 0.549 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1464, allocations: 3.938 kB / 0.549 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007493/0.1471, allocations: 0.5527 MB / 0.5495 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1471, allocations: 3.938 kB / 0.5496 GB, free: 9.852 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.1473, allocations: 27.98 kB / 0.5496 GB, free: 9.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/0.1473, allocations: 4 kB / 0.5496 GB, free: 9.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.1473, allocations: 3.938 kB / 0.5496 GB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.253e-06/0.1473, allocations: 8.031 kB / 0.5496 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1473, allocations: 0 / 0.5496 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000368/0.1477, allocations: 296.9 kB / 0.5499 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.074e-05/0.1477, allocations: 104.9 kB / 0.55 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.378e-05/0.1478, allocations: 3.938 kB / 0.55 GB, free: 9.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.1479, allocations: 15.94 kB / 0.55 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.1479, allocations: 7.984 kB / 0.55 GB, free: 9.348 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.1479, allocations: 11.98 kB / 0.55 GB, free: 9.336 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001898/0.1481, allocations: 182 kB / 0.5502 GB, free: 9.156 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1481, allocations: 0 / 0.5502 GB, free: 9.156 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003358/0.1485, allocations: 52 kB / 0.5502 GB, free: 9.105 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.0007206/0.1492, allocations: 0.8233 MB / 0.551 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003146/0.1495, allocations: 155.6 kB / 0.5512 GB, free: 8.098 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1495, allocations: 0.875 kB / 0.5512 GB, free: 8.098 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.1497, allocations: 75.91 kB / 0.5513 GB, free: 8.023 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004844/0.1502, allocations: 58.27 kB / 0.5513 GB, free: 7.973 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/0.1531, allocations: 2.56 MB / 0.5538 GB, free: 5.227 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.1536, allocations: 0.7753 MB / 0.5546 GB, free: 4.426 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001394/0.1537, allocations: 46.25 kB / 0.5546 GB, free: 4.383 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001527/0.1539, allocations: 91.41 kB / 0.5547 GB, free: 4.293 MB / 414.1 MB Notification: Performance of SimCode: time 4e-07/0.1539, allocations: 0 / 0.5547 GB, free: 4.293 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02822/0.1821, allocations: 4.98 MB / 0.5596 GB, free: 15.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.556/8.738, allocations: 12.47 kB / 0.5596 GB, free: 15.42 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 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.csv","/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] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv failed! Error: Could not read variable meter.v in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv. Warning: Get data of variable meter.v from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.895837853197008]