Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.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.00173/0.00173, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.002127/0.002127, allocations: 209.6 kB / 20.75 MB, free: 2.27 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.673/1.673, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.1867/0.1867, allocations: 38.52 MB / 348.7 MB, free: 2.648 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.AC3ph.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",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.001948/0.001948, allocations: 67.89 kB / 487.2 MB, free: 22.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1182, allocations: 62.43 MB / 0.5367 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2): time 0.003547/0.1217, allocations: 2.063 MB / 0.5387 GB, free: 5.477 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009094/0.1226, allocations: 0.5688 MB / 0.5393 GB, free: 4.906 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.927e-05/0.1227, allocations: 0 / 0.5393 GB, free: 4.906 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.1228, allocations: 7.922 kB / 0.5393 GB, free: 4.898 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.247e-05/0.1229, allocations: 31.84 kB / 0.5393 GB, free: 4.867 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003889/0.1233, allocations: 63.84 kB / 0.5394 GB, free: 4.805 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001225/0.1234, allocations: 59.7 kB / 0.5394 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.646e-05/0.1234, allocations: 4 kB / 0.5394 GB, free: 4.742 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.1236, allocations: 39.83 kB / 0.5395 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.465e-05/0.1236, allocations: 27.91 kB / 0.5395 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.1236, allocations: 4 kB / 0.5395 GB, free: 4.672 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001793/0.1238, allocations: 83.8 kB / 0.5396 GB, free: 4.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.424e-05/0.1239, allocations: 39.84 kB / 0.5396 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.918e-05/0.1239, allocations: 27.75 kB / 0.5396 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002251/0.1242, allocations: 131.7 kB / 0.5398 GB, free: 4.395 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1242, allocations: 0 / 0.5398 GB, free: 4.395 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1242, allocations: 4 kB / 0.5398 GB, free: 4.391 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.259e-06/0.1242, allocations: 0 / 0.5398 GB, free: 4.391 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004859/0.1247, allocations: 440.6 kB / 0.5402 GB, free: 3.906 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.1247, allocations: 11.97 kB / 0.5402 GB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.674e-05/0.1247, allocations: 38.75 kB / 0.5402 GB, free: 3.848 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.646e-05/0.1248, allocations: 12.84 kB / 0.5403 GB, free: 3.836 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.125, allocations: 184.2 kB / 0.5404 GB, free: 3.617 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.125, allocations: 4.375 kB / 0.5404 GB, free: 3.613 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.125, allocations: 3.938 kB / 0.5404 GB, free: 3.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001584/0.1252, allocations: 93.47 kB / 0.5405 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.1252, allocations: 0 / 0.5405 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.1252, allocations: 4 kB / 0.5405 GB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.1252, allocations: 4 kB / 0.5405 GB, free: 3.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.431e-05/0.1252, allocations: 55.97 kB / 0.5406 GB, free: 3.449 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001869/0.1254, allocations: 181.5 kB / 0.5408 GB, free: 3.223 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.1255, allocations: 74.5 kB / 0.5408 GB, free: 3.141 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.473e-05/0.1256, allocations: 60.86 kB / 0.5409 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.687e-06/0.1256, allocations: 7.938 kB / 0.5409 GB, free: 3.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/0.1257, allocations: 38.5 kB / 0.5409 GB, free: 3.023 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 9.32e-07/0.1257, allocations: 0 / 0.5409 GB, free: 3.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004716/0.1261, allocations: 303.5 kB / 0.5412 GB, free: 2.715 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.348e-05/0.1262, allocations: 97.09 kB / 0.5413 GB, free: 2.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.1263, allocations: 132.3 kB / 0.5414 GB, free: 2.465 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.1264, allocations: 29.64 kB / 0.5415 GB, free: 2.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.1264, allocations: 92.58 kB / 0.5416 GB, free: 2.336 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.243e-05/0.1265, allocations: 83.27 kB / 0.5416 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.315e-05/0.1266, allocations: 25.7 kB / 0.5417 GB, free: 2.223 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1267, allocations: 326.9 kB / 0.542 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.471e-05/0.1268, allocations: 63.97 kB / 0.542 GB, free: 1.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.8e-05/0.1269, allocations: 59.92 kB / 0.5421 GB, free: 1.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.1271, allocations: 247 kB / 0.5423 GB, free: 1.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.1271, allocations: 3.938 kB / 0.5423 GB, free: 1.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002553/0.1274, allocations: 223.9 kB / 0.5425 GB, free: 1.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.772e-05/0.1274, allocations: 61.66 kB / 0.5426 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.1275, allocations: 0 / 0.5426 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.1275, allocations: 4 kB / 0.5426 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.1275, allocations: 4.062 kB / 0.5426 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.1275, allocations: 0 / 0.5426 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.57e-05/0.1275, allocations: 7.953 kB / 0.5426 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.1275, allocations: 4 kB / 0.5426 GB, free: 1.199 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000177/0.1277, allocations: 207.3 kB / 0.5428 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.439e-05/0.1278, allocations: 15.91 kB / 0.5428 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.221e-05/0.1278, allocations: 13.17 kB / 0.5428 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1278, allocations: 0 / 0.5428 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1278, allocations: 3.938 kB / 0.5429 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1278, allocations: 4 kB / 0.5429 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.128, allocations: 197.5 kB / 0.543 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.128, allocations: 0 / 0.543 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.128, allocations: 0 / 0.543 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.128, allocations: 3.984 kB / 0.543 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.128, allocations: 4 kB / 0.5431 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.128, allocations: 0 / 0.5431 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.128, allocations: 3.984 kB / 0.5431 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006023/0.1286, allocations: 0.5138 MB / 0.5436 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.629e-05/0.1287, allocations: 96.94 kB / 0.5436 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.432e-05/0.1287, allocations: 4 kB / 0.5437 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.767e-05/0.1287, allocations: 4 kB / 0.5437 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.908e-05/0.1288, allocations: 4 kB / 0.5437 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.1288, allocations: 8 kB / 0.5437 GB, free: 16 kB / 398.1 MB Notification: Performance of sorting global known variables: time 9.07e-05/0.1289, allocations: 95.31 kB / 0.5438 GB, free: 15.92 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1289, allocations: 0 / 0.5438 GB, free: 15.92 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000255/0.1291, allocations: 51.88 kB / 0.5438 GB, free: 15.87 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0009952/0.1301, allocations: 1.055 MB / 0.5448 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005583/0.1307, allocations: 459 kB / 0.5453 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1307, allocations: 0 / 0.5453 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003226/0.131, allocations: 315.2 kB / 0.5456 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.1312, allocations: 35.02 kB / 0.5456 GB, free: 13.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.134, allocations: 2.478 MB / 0.548 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.1343, allocations: 0.716 MB / 0.5487 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.094e-05/0.1343, allocations: 4 kB / 0.5487 GB, free: 10.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.298e-05/0.1344, allocations: 27.42 kB / 0.5488 GB, free: 10.62 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1344, allocations: 0 / 0.5488 GB, free: 10.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03054/0.1649, allocations: 3.61 MB / 0.5523 GB, free: 7.137 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.217/8.382, allocations: 3.859 kB / 0.5523 GB, free: 7.133 MB / 414.1 MB " [Timeout remaining time 652] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.csv failed! Error: Could not read variable zr_q[3] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.csv. Warning: Get data of variable zr_q[3] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.676329288166016]