Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SingleTC.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.000794/0.000794, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.001089/0.001089, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9453/0.9453, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.05228/0.05228, allocations: 12.65 MB / 271.8 MB, free: 0.7266 MB / 250.7 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.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 402.2 MB, free: 10.7 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.487e-05/1.629e-05, allocations: 5.094 kB / 402.2 MB, free: 10.7 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001698/0.001715, allocations: 1.016 MB / 403.2 MB, free: 9.676 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000611/0.002326, allocations: 371.1 kB / 403.6 MB, free: 9.312 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.572e-05/0.002401, allocations: 4 kB / 403.6 MB, free: 9.309 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.002548, allocations: 47.7 kB / 403.6 MB, free: 9.262 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.002785, allocations: 59.58 kB / 403.7 MB, free: 9.203 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001595/0.002944, allocations: 127.7 kB / 403.8 MB, free: 9.078 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002308/0.003175, allocations: 307.4 kB / 404.1 MB, free: 8.777 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.583e-05/0.003221, allocations: 16.52 kB / 404.1 MB, free: 8.762 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001534/0.003374, allocations: 207.7 kB / 404.3 MB, free: 8.559 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.495e-05/0.003449, allocations: 31.77 kB / 404.4 MB, free: 8.527 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.534e-05/0.003465, allocations: 4 kB / 404.4 MB, free: 8.523 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.623e-05/0.003561, allocations: 67.88 kB / 404.4 MB, free: 8.457 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.635e-05/0.003627, allocations: 19.86 kB / 404.5 MB, free: 8.438 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.112e-05/0.003658, allocations: 19.91 kB / 404.5 MB, free: 8.418 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.003817, allocations: 123.6 kB / 404.6 MB, free: 8.297 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.003819, allocations: 4 kB / 404.6 MB, free: 8.293 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.00382, allocations: 0 / 404.6 MB, free: 8.293 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.516e-06/0.003823, allocations: 0 / 404.6 MB, free: 8.293 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003467/0.00417, allocations: 363.4 kB / 405 MB, free: 7.902 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.004205, allocations: 15.97 kB / 405 MB, free: 7.887 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.865e-05/0.004233, allocations: 38.73 kB / 405 MB, free: 7.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.876e-05/0.004262, allocations: 12.89 kB / 405 MB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.004389, allocations: 141.1 kB / 405.2 MB, free: 7.668 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.004406, allocations: 4.375 kB / 405.2 MB, free: 7.664 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.201e-05/0.004418, allocations: 8.375 kB / 405.2 MB, free: 7.656 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.004598, allocations: 139.7 kB / 405.3 MB, free: 7.492 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.004606, allocations: 4 kB / 405.3 MB, free: 7.488 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.004619, allocations: 7.984 kB / 405.3 MB, free: 7.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.004625, allocations: 4 kB / 405.3 MB, free: 7.477 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.083e-05/0.004706, allocations: 73.61 kB / 405.4 MB, free: 7.398 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005287/0.005235, allocations: 0.6292 MB / 406 MB, free: 6.711 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.005398, allocations: 76.33 kB / 406.1 MB, free: 6.621 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.53e-05/0.005433, allocations: 46.67 kB / 406.2 MB, free: 6.566 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.005449, allocations: 3.938 kB / 406.2 MB, free: 6.562 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.826e-05/0.005468, allocations: 38.5 kB / 406.2 MB, free: 6.516 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.005469, allocations: 4 kB / 406.2 MB, free: 6.512 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002208/0.00569, allocations: 174.7 kB / 406.4 MB, free: 6.316 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.005726, allocations: 81.05 kB / 406.5 MB, free: 6.219 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.005831, allocations: 170.3 kB / 406.6 MB, free: 6.043 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.005844, allocations: 33.69 kB / 406.7 MB, free: 6.004 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.927e-05/0.005903, allocations: 111.9 kB / 406.8 MB, free: 5.891 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.236e-05/0.005916, allocations: 19.89 kB / 406.8 MB, free: 5.871 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.895e-05/0.005955, allocations: 33.7 kB / 406.8 MB, free: 5.832 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.943e-05/0.006034, allocations: 322.8 kB / 407.1 MB, free: 5.508 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.745e-05/0.006071, allocations: 45.69 kB / 407.2 MB, free: 5.457 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.036e-05/0.006122, allocations: 85.92 kB / 407.3 MB, free: 5.352 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.065e-05/0.006212, allocations: 131.6 kB / 407.4 MB, free: 5.195 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.006215, allocations: 112 / 407.4 MB, free: 5.195 MB / 378.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001318/0.006347, allocations: 172.9 kB / 407.6 MB, free: 5.008 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.006372, allocations: 33.69 kB / 407.6 MB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.006378, allocations: 7.938 kB / 407.6 MB, free: 4.961 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.006388, allocations: 4.125 kB / 407.6 MB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.638e-05/0.006424, allocations: 12 kB / 407.6 MB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.00643, allocations: 4.188 kB / 407.6 MB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.557e-05/0.006456, allocations: 15.89 kB / 407.6 MB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.00647, allocations: 11.98 kB / 407.6 MB, free: 4.914 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (T1.firingCon,T1.fire_,T1.activation.NoTokens,T1.activation.active,T1.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 8.361e-05/0.006554, allocations: 151.5 kB / 407.8 MB, free: 4.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.932e-05/0.006573, allocations: 11.95 kB / 407.8 MB, free: 4.738 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001356/0.006709, allocations: 143.4 kB / 407.9 MB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.006711, allocations: 4 kB / 407.9 MB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.006716, allocations: 3.938 kB / 408 MB, free: 4.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.006719, allocations: 7.984 kB / 408 MB, free: 4.562 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.591e-05/0.006805, allocations: 156.7 kB / 408.1 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.006806, allocations: 0 / 408.1 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.013e-05/0.006817, allocations: 4 kB / 408.1 MB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.006818, allocations: 0 / 408.1 MB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-06/0.006824, allocations: 0 / 408.1 MB, free: 4.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.006825, allocations: 4 kB / 408.1 MB, free: 4.359 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.006827, allocations: 3.938 kB / 408.1 MB, free: 4.355 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.467e-05/0.006921, allocations: 160.4 kB / 408.3 MB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.354e-05/0.006935, allocations: 19.84 kB / 408.3 MB, free: 4.148 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.006948, allocations: 3.938 kB / 408.3 MB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.134e-05/0.006959, allocations: 8 kB / 408.3 MB, free: 4.137 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.116e-05/0.00698, allocations: 7.922 kB / 408.3 MB, free: 4.129 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-06/0.006983, allocations: 0 / 408.3 MB, free: 4.129 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.9e-05/0.007042, allocations: 127.8 kB / 408.4 MB, free: 4.004 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007042, allocations: 0 / 408.4 MB, free: 4.004 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001472/0.007189, allocations: 20 kB / 408.5 MB, free: 3.984 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (T1.fire,T1.activation.active,T1.activation.NoTokens) * Number of discrete states: 2 (T1.activation.active,T1.activation.NoTokens) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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.0003077/0.007497, allocations: 0.71 MB / 409.2 MB, free: 3.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001477/0.007645, allocations: 162.9 kB / 409.3 MB, free: 3.047 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.007647, allocations: 8.25 kB / 409.3 MB, free: 3.039 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.556e-05/0.007693, allocations: 105.1 kB / 409.4 MB, free: 2.918 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001581/0.007851, allocations: 20.09 kB / 409.5 MB, free: 2.898 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0014/0.00925, allocations: 1.747 MB / 411.2 MB, free: 0.9961 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.766e-05/0.009298, allocations: 85.11 kB / 411.3 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.803e-05/0.009376, allocations: 44.38 kB / 411.3 MB, free: 0.8516 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.509e-05/0.009431, allocations: 44.41 kB / 411.4 MB, free: 0.8086 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.009432, allocations: 0 / 411.4 MB, free: 0.8086 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01513/0.02456, allocations: 3.011 MB / 414.4 MB, free: 13.91 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.815/6.84, allocations: 17.81 kB / 414.4 MB, free: 13.9 MB / 394.7 MB " [Timeout remaining time 653] (rm -f PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; mkfifo PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ConTest.SingleTC.pipe >> ../files/PNlib_PNlib.Examples.ConTest.SingleTC.sim & python3 -m fmpy simulate --output-file PNlib_PNlib.Examples.ConTest.SingleTC_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_ConTest_SingleTC.fmu > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.csv","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable T1.fire in file PNlib_PNlib.Examples.ConTest.SingleTC_res.csv. Warning: Get data of variable T1.fire from file PNlib_PNlib.Examples.ConTest.SingleTC_res.csv failed! Error: Could not read variable T1.instantaneousSpeed in file PNlib_PNlib.Examples.ConTest.SingleTC_res.csv. Warning: Get data of variable T1.instantaneousSpeed from file PNlib_PNlib.Examples.ConTest.SingleTC_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.805863050743937]