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.001731/0.001731, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001896/0.001896, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.427/1.427, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.1846/0.1846, allocations: 38.52 MB / 352.5 MB, free: 12.56 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.001962/0.001962, allocations: 59.91 kB / 492.5 MB, free: 4.902 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3159, allocations: 62.47 MB / 0.542 GB, free: 460 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.00603/0.3219, allocations: 4.199 MB / 0.5461 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.3235, allocations: 0.9345 MB / 0.547 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.3237, allocations: 18.69 kB / 0.547 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.3239, allocations: 51.69 kB / 0.5471 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004956/0.3244, allocations: 181.4 kB / 0.5473 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.3246, allocations: 92.31 kB / 0.5473 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005731/0.3252, allocations: 410.7 kB / 0.5477 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002207/0.3254, allocations: 75.12 kB / 0.5478 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00039/0.3258, allocations: 198.5 kB / 0.548 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003761/0.3262, allocations: 207.4 kB / 0.5482 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.035e-05/0.3263, allocations: 21.53 kB / 0.5482 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.996e-05/0.3263, allocations: 20.78 kB / 0.5482 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001474/0.3265, allocations: 111.5 kB / 0.5483 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.3267, allocations: 150.7 kB / 0.5485 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000504/0.3272, allocations: 316.4 kB / 0.5488 GB, free: 11.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.3272, allocations: 1.031 kB / 0.5488 GB, free: 11.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3272, allocations: 4 kB / 0.5488 GB, free: 11.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.3272, allocations: 0 / 0.5488 GB, free: 11.25 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.001367/0.3285, allocations: 0.5587 MB / 0.5493 GB, free: 10.78 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.3286, allocations: 12.95 kB / 0.5493 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.715e-05/0.3287, allocations: 59.72 kB / 0.5494 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.76e-05/0.3288, allocations: 36.22 kB / 0.5494 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00058/0.3294, allocations: 283.7 kB / 0.5497 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.3294, allocations: 21.25 kB / 0.5497 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.384e-05/0.3294, allocations: 22.72 kB / 0.5498 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005546/0.33, allocations: 318.1 kB / 0.5501 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.33, allocations: 7.922 kB / 0.5501 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.33, allocations: 18.47 kB / 0.5501 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.3301, allocations: 5.719 kB / 0.5501 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003794/0.3304, allocations: 212.5 kB / 0.5503 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001782/0.3322, allocations: 1.305 MB / 0.5516 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003995/0.3326, allocations: 139.5 kB / 0.5517 GB, free: 8.809 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.3327, allocations: 61.17 kB / 0.5518 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.851e-05/0.3328, allocations: 2.781 kB / 0.5518 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.3328, allocations: 39.78 kB / 0.5518 GB, free: 8.719 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.3328, allocations: 7.938 kB / 0.5518 GB, free: 8.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008397/0.3336, allocations: 364.4 kB / 0.5521 GB, free: 8.492 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.3337, allocations: 82.52 kB / 0.5522 GB, free: 8.395 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003006/0.334, allocations: 264.7 kB / 0.5525 GB, free: 8.207 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.334, allocations: 30.95 kB / 0.5525 GB, free: 8.172 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.3342, allocations: 201.5 kB / 0.5527 GB, free: 7.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.372e-05/0.3342, allocations: 46.42 kB / 0.5527 GB, free: 7.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.021e-05/0.3343, allocations: 49.22 kB / 0.5528 GB, free: 7.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.3345, allocations: 340.3 kB / 0.5531 GB, free: 7.574 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.3346, allocations: 52.75 kB / 0.5532 GB, free: 7.551 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.3348, allocations: 149.5 kB / 0.5533 GB, free: 7.395 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.3351, allocations: 230.2 kB / 0.5535 GB, free: 7.195 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3351, allocations: 5.125 kB / 0.5535 GB, free: 7.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003718/0.3355, allocations: 245.1 kB / 0.5538 GB, free: 7.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.3355, allocations: 7.281 kB / 0.5538 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.3355, allocations: 7.516 kB / 0.5538 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.3355, allocations: 5.344 kB / 0.5538 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.3357, allocations: 47.73 kB / 0.5538 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.3357, allocations: 8.922 kB / 0.5538 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.3358, allocations: 12.08 kB / 0.5539 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.3359, allocations: 13.72 kB / 0.5539 GB, free: 7.023 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.0001742/0.336, allocations: 158.9 kB / 0.554 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.721e-05/0.3361, allocations: 23.23 kB / 0.554 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003273/0.3364, allocations: 197.7 kB / 0.5542 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3364, allocations: 6.312 kB / 0.5542 GB, free: 6.738 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3364, allocations: 5.172 kB / 0.5542 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3364, allocations: 0 / 0.5542 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007049/0.3371, allocations: 0.5232 MB / 0.5548 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3371, allocations: 0 / 0.5548 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.3373, allocations: 34.7 kB / 0.5548 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.3373, allocations: 2.438 kB / 0.5548 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.3373, allocations: 1.281 kB / 0.5548 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.084e-06/0.3373, allocations: 9.203 kB / 0.5548 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3373, allocations: 5.25 kB / 0.5548 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000346/0.3376, allocations: 300.1 kB / 0.5551 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.124e-05/0.3377, allocations: 27.86 kB / 0.5551 GB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.3377, allocations: 1.188 kB / 0.5551 GB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.3378, allocations: 14.41 kB / 0.5551 GB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.079e-05/0.3379, allocations: 12.61 kB / 0.5551 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.3379, allocations: 3.438 kB / 0.5551 GB, free: 6.008 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001712/0.338, allocations: 184.2 kB / 0.5553 GB, free: 5.879 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.338, allocations: 1.156 kB / 0.5553 GB, free: 5.879 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003167/0.3384, allocations: 51.64 kB / 0.5554 GB, free: 5.871 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.0006352/0.339, allocations: 0.8318 MB / 0.5562 GB, free: 5.105 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000283/0.3393, allocations: 155.9 kB / 0.5563 GB, free: 5.035 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3393, allocations: 0 / 0.5563 GB, free: 5.035 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.3394, allocations: 67.66 kB / 0.5564 GB, free: 5.008 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.3399, allocations: 58.22 kB / 0.5565 GB, free: 4.977 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/0.3427, allocations: 2.556 MB / 0.5589 GB, free: 2.488 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004161/0.3432, allocations: 0.7792 MB / 0.5597 GB, free: 1.684 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000135/0.3433, allocations: 42.27 kB / 0.5597 GB, free: 1.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.3434, allocations: 87.41 kB / 0.5598 GB, free: 1.559 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3434, allocations: 0 / 0.5598 GB, free: 1.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03233/0.3758, allocations: 5.228 MB / 0.5649 GB, free: 12.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.15, allocations: 6.953 kB / 0.5649 GB, free: 12.48 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.97758089099807]