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.001746/0.001746, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.0021/0.0021, allocations: 212.4 kB / 23.73 MB, free: 4.387 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.608/1.608, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.1878/0.1878, allocations: 38.56 MB / 352.5 MB, free: 12.32 MB / 286.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="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.002289/0.002289, allocations: 67.89 kB / 492.5 MB, free: 4.715 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3352, allocations: 62.46 MB / 0.5419 GB, free: 268 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005693/0.3409, allocations: 3.989 MB / 0.5458 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.3424, allocations: 0.8664 MB / 0.5467 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.3425, allocations: 18.97 kB / 0.5467 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001973/0.3427, allocations: 56.91 kB / 0.5468 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004643/0.3432, allocations: 184.6 kB / 0.5469 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002088/0.3434, allocations: 84.27 kB / 0.547 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004307/0.3438, allocations: 411.5 kB / 0.5474 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.344, allocations: 70.62 kB / 0.5475 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003223/0.3443, allocations: 202.2 kB / 0.5477 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003217/0.3446, allocations: 204.1 kB / 0.5479 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.908e-05/0.3447, allocations: 20.62 kB / 0.5479 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.569e-05/0.3447, allocations: 25.25 kB / 0.5479 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.3449, allocations: 110.3 kB / 0.548 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.345, allocations: 123 kB / 0.5481 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003977/0.3454, allocations: 312.6 kB / 0.5484 GB, free: 11.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3454, allocations: 1.312 kB / 0.5484 GB, free: 11.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3454, allocations: 0 / 0.5484 GB, free: 11.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.3454, allocations: 4 kB / 0.5484 GB, free: 11.4 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.001137/0.3466, allocations: 0.5602 MB / 0.549 GB, free: 10.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.3466, allocations: 12.83 kB / 0.549 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.774e-05/0.3467, allocations: 67.34 kB / 0.5491 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.707e-05/0.3468, allocations: 33.44 kB / 0.5491 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005216/0.3473, allocations: 278.5 kB / 0.5494 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.3473, allocations: 19 kB / 0.5494 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.3473, allocations: 30.34 kB / 0.5494 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004847/0.3478, allocations: 310.4 kB / 0.5497 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.3478, allocations: 1.25 kB / 0.5497 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.3479, allocations: 10.84 kB / 0.5497 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.3479, allocations: 5.156 kB / 0.5497 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003592/0.3482, allocations: 219.4 kB / 0.5499 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001631/0.3499, allocations: 1.261 MB / 0.5512 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/0.3502, allocations: 135.6 kB / 0.5513 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.528e-05/0.3503, allocations: 57.88 kB / 0.5513 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.955e-05/0.3503, allocations: 5.125 kB / 0.5513 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.3504, allocations: 37.23 kB / 0.5514 GB, free: 8.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.402e-06/0.3504, allocations: 224 / 0.5514 GB, free: 8.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007618/0.3511, allocations: 372.7 kB / 0.5517 GB, free: 8.703 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.3512, allocations: 83.92 kB / 0.5518 GB, free: 8.605 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.3514, allocations: 265.2 kB / 0.5521 GB, free: 8.418 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.3515, allocations: 30.73 kB / 0.5521 GB, free: 8.383 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.3516, allocations: 209 kB / 0.5523 GB, free: 8.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.414e-05/0.3516, allocations: 46.59 kB / 0.5523 GB, free: 8.152 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.762e-05/0.3517, allocations: 48.72 kB / 0.5524 GB, free: 8.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3519, allocations: 337.7 kB / 0.5527 GB, free: 7.781 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.352, allocations: 55.73 kB / 0.5528 GB, free: 7.754 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.3521, allocations: 153.9 kB / 0.5529 GB, free: 7.598 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003073/0.3525, allocations: 223.9 kB / 0.5531 GB, free: 7.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3525, allocations: 5 kB / 0.5531 GB, free: 7.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003809/0.3528, allocations: 245.5 kB / 0.5534 GB, free: 7.266 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3529, allocations: 6.562 kB / 0.5534 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3529, allocations: 3.812 kB / 0.5534 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.3529, allocations: 4.562 kB / 0.5534 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.3531, allocations: 53.31 kB / 0.5534 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.3531, allocations: 16.14 kB / 0.5534 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.3532, allocations: 7.844 kB / 0.5534 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.3532, allocations: 18.16 kB / 0.5535 GB, free: 7.227 MB / 398.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.0001539/0.3534, allocations: 158.9 kB / 0.5536 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.428e-05/0.3534, allocations: 30.95 kB / 0.5536 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003319/0.3538, allocations: 191.9 kB / 0.5538 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3538, allocations: 2.312 kB / 0.5538 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3538, allocations: 0 / 0.5538 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3538, allocations: 9.172 kB / 0.5538 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006828/0.3545, allocations: 0.51 MB / 0.5543 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.3545, allocations: 1.156 kB / 0.5543 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.3546, allocations: 30.48 kB / 0.5544 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3546, allocations: 1.281 kB / 0.5544 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.3546, allocations: 10.64 kB / 0.5544 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.3546, allocations: 5.281 kB / 0.5544 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3546, allocations: 0 / 0.5544 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003326/0.355, allocations: 296 kB / 0.5547 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.536e-05/0.355, allocations: 27 kB / 0.5547 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.3551, allocations: 10.19 kB / 0.5547 GB, free: 6.242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.3552, allocations: 6.25 kB / 0.5547 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.777e-05/0.3552, allocations: 11.83 kB / 0.5547 GB, free: 6.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.3552, allocations: 12.48 kB / 0.5547 GB, free: 6.223 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001731/0.3554, allocations: 179.9 kB / 0.5549 GB, free: 6.098 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3554, allocations: 1.094 kB / 0.5549 GB, free: 6.098 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003285/0.3557, allocations: 51.81 kB / 0.555 GB, free: 6.09 MB / 398.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.0006328/0.3564, allocations: 0.8243 MB / 0.5558 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002834/0.3566, allocations: 152.6 kB / 0.5559 GB, free: 5.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3566, allocations: 3.938 kB / 0.5559 GB, free: 5.266 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.3567, allocations: 70 kB / 0.556 GB, free: 5.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004679/0.3572, allocations: 62.19 kB / 0.556 GB, free: 5.203 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002903/0.3601, allocations: 2.551 MB / 0.5585 GB, free: 2.645 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.3603, allocations: 178.1 kB / 0.5587 GB, free: 2.453 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.3605, allocations: 46.25 kB / 0.5587 GB, free: 2.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.3606, allocations: 87.41 kB / 0.5588 GB, free: 2.324 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3606, allocations: 0 / 0.5588 GB, free: 2.324 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03437/0.395, allocations: 5.656 MB / 0.5643 GB, free: 12.83 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.82, allocations: 7.312 kB / 0.5644 GB, free: 12.82 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.954286681022495]