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.001705/0.001705, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.002078/0.002078, allocations: 219.6 kB / 23.04 MB, free: 5.074 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.08085/0.08085, allocations: 16.94 MB / 330.2 MB, free: 2.27 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.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="cs",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.001964/0.001964, allocations: 68.17 kB / 460.5 MB, free: 2.305 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09907/0.101, allocations: 57.64 MB / 0.506 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.00228/0.1033, allocations: 1.069 MB / 0.5071 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008162/0.1041, allocations: 391.1 kB / 0.5074 GB, free: 7.125 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.967e-05/0.1042, allocations: 4 kB / 0.5074 GB, free: 7.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.1044, allocations: 51.64 kB / 0.5075 GB, free: 7.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002538/0.1046, allocations: 51.64 kB / 0.5075 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002361/0.1049, allocations: 131.8 kB / 0.5077 GB, free: 6.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003628/0.1052, allocations: 303.4 kB / 0.508 GB, free: 6.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.979e-05/0.1053, allocations: 16.58 kB / 0.508 GB, free: 6.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.1054, allocations: 147.6 kB / 0.5081 GB, free: 6.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.909e-05/0.1055, allocations: 55.53 kB / 0.5082 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.1055, allocations: 7.938 kB / 0.5082 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.1057, allocations: 71.86 kB / 0.5082 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.523e-05/0.1057, allocations: 27.8 kB / 0.5083 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.293e-05/0.1058, allocations: 27.75 kB / 0.5083 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002005/0.106, allocations: 119.8 kB / 0.5084 GB, free: 6.129 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.106, allocations: 0 / 0.5084 GB, free: 6.129 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.106, allocations: 0 / 0.5084 GB, free: 6.129 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.916e-06/0.106, allocations: 4 kB / 0.5084 GB, free: 6.125 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004616/0.1065, allocations: 367.4 kB / 0.5088 GB, free: 5.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.1065, allocations: 8.031 kB / 0.5088 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.615e-05/0.1065, allocations: 4.188 kB / 0.5088 GB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.338e-05/0.1066, allocations: 34.75 kB / 0.5088 GB, free: 5.676 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.441e-05/0.1066, allocations: 24.83 kB / 0.5088 GB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.1068, allocations: 136.6 kB / 0.509 GB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.1068, allocations: 3.938 kB / 0.509 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.1068, allocations: 12 kB / 0.509 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.107, allocations: 109.9 kB / 0.5091 GB, free: 5.352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.107, allocations: 0 / 0.5091 GB, free: 5.352 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.107, allocations: 0 / 0.5091 GB, free: 5.352 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.107, allocations: 4 kB / 0.5091 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001057/0.1071, allocations: 51.89 kB / 0.5091 GB, free: 5.297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007395/0.1079, allocations: 0.6409 MB / 0.5098 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.108, allocations: 54.56 kB / 0.5098 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.843e-05/0.1081, allocations: 16.97 kB / 0.5098 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.1081, allocations: 0 / 0.5098 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.1081, allocations: 38.56 kB / 0.5099 GB, free: 4.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 9.02e-07/0.1081, allocations: 112 / 0.5099 GB, free: 4.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.000245/0.1084, allocations: 115.2 kB / 0.51 GB, free: 4.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.1084, allocations: 85.05 kB / 0.5101 GB, free: 4.242 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.1086, allocations: 175 kB / 0.5102 GB, free: 4.062 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.1086, allocations: 29.7 kB / 0.5103 GB, free: 4.027 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.596e-05/0.1087, allocations: 112 kB / 0.5104 GB, free: 3.914 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.1087, allocations: 15.86 kB / 0.5104 GB, free: 3.898 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.531e-05/0.1088, allocations: 37.7 kB / 0.5104 GB, free: 3.855 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1089, allocations: 322.8 kB / 0.5107 GB, free: 3.531 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.728e-05/0.109, allocations: 19.98 kB / 0.5107 GB, free: 3.512 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.752e-05/0.109, allocations: 52.28 kB / 0.5108 GB, free: 3.445 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.1092, allocations: 127.6 kB / 0.5109 GB, free: 3.293 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1092, allocations: 0 / 0.5109 GB, free: 3.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002218/0.1094, allocations: 143.2 kB / 0.511 GB, free: 3.141 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.825e-05/0.1095, allocations: 41.62 kB / 0.5111 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1095, allocations: 3.938 kB / 0.5111 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.1095, allocations: 4 kB / 0.5111 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.341e-05/0.1095, allocations: 16.12 kB / 0.5111 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.1096, allocations: 3.984 kB / 0.5111 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.35e-05/0.1096, allocations: 11.89 kB / 0.5111 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/0.1096, allocations: 8 kB / 0.5111 GB, free: 3.047 MB / 382.1 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 0.0001227/0.1097, allocations: 147.5 kB / 0.5113 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.037e-05/0.1098, allocations: 19.84 kB / 0.5113 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001965/0.11, allocations: 117.6 kB / 0.5114 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.11, allocations: 0 / 0.5114 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.11, allocations: 4 kB / 0.5114 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.11, allocations: 4.234 kB / 0.5114 GB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001556/0.1101, allocations: 160.7 kB / 0.5116 GB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1101, allocations: 4 kB / 0.5116 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.146e-05/0.1102, allocations: 3.938 kB / 0.5116 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.1102, allocations: 11.88 kB / 0.5116 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.1102, allocations: 0 / 0.5116 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1102, allocations: 0 / 0.5116 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1102, allocations: 3.984 kB / 0.5116 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000168/0.1104, allocations: 130.7 kB / 0.5117 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.881e-05/0.1104, allocations: 11.95 kB / 0.5117 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.1104, allocations: 3.938 kB / 0.5117 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.262e-05/0.1104, allocations: 4 kB / 0.5117 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.12e-05/0.1104, allocations: 3.984 kB / 0.5117 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/0.1104, allocations: 0 / 0.5117 GB, free: 2.324 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001163/0.1106, allocations: 131.8 kB / 0.5119 GB, free: 2.195 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1106, allocations: 0 / 0.5119 GB, free: 2.195 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.1108, allocations: 23.94 kB / 0.5119 GB, free: 2.172 MB / 382.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: 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.0005127/0.1113, allocations: 0.6848 MB / 0.5126 GB, free: 1.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001765/0.1115, allocations: 111.3 kB / 0.5127 GB, free: 1.328 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1115, allocations: 4 kB / 0.5127 GB, free: 1.324 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.9e-05/0.1115, allocations: 67.53 kB / 0.5127 GB, free: 1.246 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.1118, allocations: 20.23 kB / 0.5127 GB, free: 1.227 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1789/0.2906, allocations: 1.584 MB / 0.5143 GB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.2907, allocations: 0.7063 MB / 0.515 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001554/0.2909, allocations: 42.69 kB / 0.515 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.56e-05/0.291, allocations: 36.52 kB / 0.5151 GB, free: 13.52 MB / 382.1 MB Notification: Performance of SimCode: time 1.844e-06/0.291, allocations: 0.8125 kB / 0.5151 GB, free: 13.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02163/0.3126, allocations: 2.548 MB / 0.5175 GB, free: 13.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.06, allocations: 5.469 kB / 0.5176 GB, free: 13.17 MB / 382.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PNlib_PNlib.Examples.ConTest.SingleTC_res.mat --tempDir=temp_PNlib_PNlib_Examples_ConTest_SingleTC_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_ConTest_SingleTC.fmu > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.827457348932512]