Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.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.00139/0.00139, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001665/0.001665, allocations: 216.4 kB / 22.25 MB, free: 5.129 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.485/1.485, allocations: 230.6 MB / 256 MB, free: 7.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo): time 0.08363/0.08363, allocations: 16.95 MB / 329.4 MB, free: 2.242 MB / 254.1 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 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(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PNlib 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.002011/0.002011, allocations: 63.91 kB / 459.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1284, allocations: 57.63 MB / 0.5053 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002678/0.1311, allocations: 1.076 MB / 0.5063 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007166/0.1318, allocations: 267.8 kB / 0.5066 GB, free: 7.195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.183e-05/0.1319, allocations: 4 kB / 0.5066 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.1321, allocations: 39.72 kB / 0.5066 GB, free: 7.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000271/0.1324, allocations: 43.66 kB / 0.5067 GB, free: 7.109 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001615/0.1325, allocations: 75.89 kB / 0.5067 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003167/0.1328, allocations: 239.5 kB / 0.507 GB, free: 6.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.303e-05/0.1329, allocations: 12.59 kB / 0.507 GB, free: 6.789 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.1331, allocations: 123.5 kB / 0.5071 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.431e-05/0.1332, allocations: 47.59 kB / 0.5071 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.244e-05/0.1332, allocations: 4 kB / 0.5071 GB, free: 6.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.492e-05/0.1333, allocations: 15.98 kB / 0.5072 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.518e-05/0.1334, allocations: 23.86 kB / 0.5072 GB, free: 6.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.101e-05/0.1334, allocations: 43.67 kB / 0.5072 GB, free: 6.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.1336, allocations: 79.88 kB / 0.5073 GB, free: 6.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.1336, allocations: 0 / 0.5073 GB, free: 6.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1336, allocations: 0 / 0.5073 GB, free: 6.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1336, allocations: 4 kB / 0.5073 GB, free: 6.453 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006118/0.1342, allocations: 367.4 kB / 0.5077 GB, free: 6.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.1343, allocations: 8.031 kB / 0.5077 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.632e-05/0.1343, allocations: 50.61 kB / 0.5077 GB, free: 5.992 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.021e-05/0.1344, allocations: 12.89 kB / 0.5077 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/0.1346, allocations: 147.8 kB / 0.5079 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.1346, allocations: 11.91 kB / 0.5079 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.919e-05/0.1346, allocations: 4 kB / 0.5079 GB, free: 5.797 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00033/0.135, allocations: 138.7 kB / 0.508 GB, free: 5.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.135, allocations: 0 / 0.508 GB, free: 5.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.135, allocations: 0 / 0.508 GB, free: 5.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.135, allocations: 4 kB / 0.508 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.1352, allocations: 67.89 kB / 0.5081 GB, free: 5.566 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008912/0.1361, allocations: 0.7232 MB / 0.5088 GB, free: 4.781 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000196/0.1363, allocations: 89.22 kB / 0.5089 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.323e-05/0.1364, allocations: 29.66 kB / 0.5089 GB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.35e-05/0.1364, allocations: 0 / 0.5089 GB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002333/0.1366, allocations: 97.03 kB / 0.509 GB, free: 4.527 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.1366, allocations: 0 / 0.509 GB, free: 4.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.000425/0.1371, allocations: 159.2 kB / 0.5091 GB, free: 4.359 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.972e-05/0.1371, allocations: 110.8 kB / 0.5092 GB, free: 4.227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.1373, allocations: 175 kB / 0.5094 GB, free: 4.047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.1373, allocations: 29.7 kB / 0.5094 GB, free: 4.012 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.648e-05/0.1374, allocations: 116.2 kB / 0.5096 GB, free: 3.891 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.819e-05/0.1375, allocations: 23.84 kB / 0.5096 GB, free: 3.867 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.485e-05/0.1375, allocations: 37.7 kB / 0.5096 GB, free: 3.824 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1377, allocations: 330.8 kB / 0.5099 GB, free: 3.492 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.893e-05/0.1377, allocations: 27.98 kB / 0.51 GB, free: 3.465 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.1379, allocations: 86.72 kB / 0.51 GB, free: 3.355 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003865/0.1383, allocations: 261.5 kB / 0.5103 GB, free: 3.051 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1383, allocations: 3.938 kB / 0.5103 GB, free: 3.047 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003261/0.1386, allocations: 195.1 kB / 0.5105 GB, free: 2.844 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.197e-05/0.1386, allocations: 29.7 kB / 0.5105 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1386, allocations: 4.188 kB / 0.5105 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1387, allocations: 4 kB / 0.5105 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.838e-05/0.1388, allocations: 19.92 kB / 0.5105 GB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.1388, allocations: 0 / 0.5105 GB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.513e-05/0.1388, allocations: 24.11 kB / 0.5106 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.1389, allocations: 8 kB / 0.5106 GB, free: 2.75 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = true protected = true ) \"next putative firing time\" type: Real T1.ani:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.T1.firingTime,T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,$whenCondition2,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,T1.firingCon,T1.enabledByInPlaces,$whenCondition1,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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.0002399/0.1391, allocations: 168 kB / 0.5107 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.1391, allocations: 11.95 kB / 0.5107 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.46e-05/0.1392, allocations: 21.08 kB / 0.5108 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1392, allocations: 0 / 0.5108 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.1392, allocations: 0 / 0.5108 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.1392, allocations: 8 kB / 0.5108 GB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005789/0.1398, allocations: 466.7 kB / 0.5112 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.1398, allocations: 4.062 kB / 0.5112 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.181e-05/0.1398, allocations: 7.984 kB / 0.5112 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1398, allocations: 0 / 0.5112 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.1398, allocations: 8 kB / 0.5112 GB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1398, allocations: 0 / 0.5112 GB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.1398, allocations: 3.938 kB / 0.5112 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003294/0.1401, allocations: 312.3 kB / 0.5115 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.05e-05/0.1402, allocations: 7.953 kB / 0.5115 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.1402, allocations: 4 kB / 0.5115 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.1403, allocations: 7.938 kB / 0.5115 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.299e-05/0.1404, allocations: 15.97 kB / 0.5116 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.1404, allocations: 4 kB / 0.5116 GB, free: 1.621 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.1405, allocations: 128.2 kB / 0.5117 GB, free: 1.496 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1405, allocations: 0 / 0.5117 GB, free: 1.496 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003137/0.1408, allocations: 23.94 kB / 0.5117 GB, free: 1.473 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,T1.fireTime,T1.ani,T1.active,$whenCondition2,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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.0006978/0.1415, allocations: 0.8382 MB / 0.5125 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003051/0.1418, allocations: 143.2 kB / 0.5127 GB, free: 460 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1418, allocations: 0 / 0.5127 GB, free: 460 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.1419, allocations: 83.58 kB / 0.5127 GB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.1423, allocations: 19.92 kB / 0.5128 GB, free: 344 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2097/0.352, allocations: 1.858 MB / 0.5146 GB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001464/0.3521, allocations: 0.7061 MB / 0.5153 GB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.615e-05/0.3522, allocations: 29.17 kB / 0.5153 GB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.795e-05/0.3523, allocations: 36.27 kB / 0.5153 GB, free: 13.34 MB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/0.3523, allocations: 0 / 0.5153 GB, free: 13.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02904/0.3813, allocations: 2.677 MB / 0.5179 GB, free: 13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.93, allocations: 5.5 kB / 0.518 GB, free: 13 MB / 382.1 MB " [Timeout remaining time 648] (rm -f PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SingleTD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SingleTD.sim & python3 -m fmpy simulate --output-file PNlib_PNlib.Examples.DisTest.SingleTD_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PNlib_PNlib_Examples_DisTest_SingleTD.fmu > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.csv","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable T1.active in file PNlib_PNlib.Examples.DisTest.SingleTD_res.csv. Warning: Get data of variable T1.active from file PNlib_PNlib.Examples.DisTest.SingleTD_res.csv failed! Error: Could not read variable T1.fire in file PNlib_PNlib.Examples.DisTest.SingleTD_res.csv. Warning: Get data of variable T1.fire from file PNlib_PNlib.Examples.DisTest.SingleTD_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.070936660995358]