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.0008071/0.0008071, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0009137/0.0009137, 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.8745/0.8745, allocations: 177.1 MB / 202.8 MB, free: 5.727 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.04912/0.04912, allocations: 12.65 MB / 271.8 MB, free: 0.707 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.543e-06/1.543e-06, allocations: 0 / 402.2 MB, free: 10.69 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.199e-05/2.354e-05, allocations: 9.172 kB / 402.2 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001852/0.001875, allocations: 1.008 MB / 403.2 MB, free: 9.664 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006068/0.002482, allocations: 375.1 kB / 403.6 MB, free: 9.297 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.325e-05/0.002555, allocations: 7.938 kB / 403.6 MB, free: 9.289 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001594/0.002715, allocations: 51.69 kB / 403.7 MB, free: 9.238 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002512/0.002966, allocations: 55.59 kB / 403.7 MB, free: 9.184 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001712/0.003137, allocations: 123.7 kB / 403.8 MB, free: 9.062 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000247/0.003384, allocations: 307.3 kB / 404.1 MB, free: 8.762 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.388e-05/0.003438, allocations: 20.55 kB / 404.2 MB, free: 8.742 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.003594, allocations: 199.7 kB / 404.3 MB, free: 8.547 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.695e-05/0.003681, allocations: 35.77 kB / 404.4 MB, free: 8.512 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.003696, allocations: 4 kB / 404.4 MB, free: 8.508 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.003802, allocations: 63.88 kB / 404.4 MB, free: 8.445 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.851e-05/0.003871, allocations: 31.83 kB / 404.5 MB, free: 8.414 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.207e-05/0.003903, allocations: 15.88 kB / 404.5 MB, free: 8.398 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001693/0.004072, allocations: 127.7 kB / 404.6 MB, free: 8.273 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.004074, allocations: 0 / 404.6 MB, free: 8.273 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.004075, allocations: 0 / 404.6 MB, free: 8.273 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.004079, allocations: 0 / 404.6 MB, free: 8.273 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.0003618/0.004441, allocations: 359.4 kB / 405 MB, free: 7.887 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.004478, allocations: 12.03 kB / 405 MB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.717e-05/0.004505, allocations: 38.69 kB / 405 MB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.965e-05/0.004534, allocations: 12.89 kB / 405 MB, free: 7.816 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.004674, allocations: 138.1 kB / 405.2 MB, free: 7.656 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.004693, allocations: 8.375 kB / 405.2 MB, free: 7.648 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.004705, allocations: 4.375 kB / 405.2 MB, free: 7.645 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.004871, allocations: 147.7 kB / 405.3 MB, free: 7.473 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.004879, allocations: 3.984 kB / 405.3 MB, free: 7.469 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.004889, allocations: 0 / 405.3 MB, free: 7.469 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.004895, allocations: 4 kB / 405.3 MB, free: 7.465 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.426e-05/0.004979, allocations: 77.61 kB / 405.4 MB, free: 7.383 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005376/0.005517, allocations: 0.6292 MB / 406 MB, free: 6.695 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001524/0.005669, allocations: 76.33 kB / 406.1 MB, free: 6.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.323e-05/0.005702, allocations: 46.69 kB / 406.2 MB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.005718, allocations: 3.938 kB / 406.2 MB, free: 6.547 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.005738, allocations: 42.5 kB / 406.2 MB, free: 6.496 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.022e-06/0.005739, allocations: 0 / 406.2 MB, free: 6.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002022/0.005941, allocations: 170.7 kB / 406.4 MB, free: 6.305 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.005975, allocations: 85.05 kB / 406.5 MB, free: 6.203 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.006076, allocations: 170.2 kB / 406.6 MB, free: 6.027 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.006087, allocations: 33.7 kB / 406.7 MB, free: 5.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.56e-05/0.006143, allocations: 115.9 kB / 406.8 MB, free: 5.871 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.719e-06/0.006152, allocations: 15.91 kB / 406.8 MB, free: 5.855 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.532e-05/0.006188, allocations: 29.7 kB / 406.8 MB, free: 5.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.709e-05/0.006265, allocations: 326.8 kB / 407.1 MB, free: 5.492 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.575e-05/0.0063, allocations: 41.69 kB / 407.2 MB, free: 5.445 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.824e-05/0.006349, allocations: 97.97 kB / 407.3 MB, free: 5.328 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.047e-05/0.006429, allocations: 127.6 kB / 407.4 MB, free: 5.176 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.006431, allocations: 0 / 407.4 MB, free: 5.176 MB / 378.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001282/0.006559, allocations: 172.9 kB / 407.6 MB, free: 4.988 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.006585, allocations: 33.69 kB / 407.6 MB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.006591, allocations: 8.125 kB / 407.6 MB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.006602, allocations: 0 / 407.6 MB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.7e-05/0.006639, allocations: 15.94 kB / 407.6 MB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.006646, allocations: 8.172 kB / 407.6 MB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.472e-05/0.006671, allocations: 11.89 kB / 407.6 MB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.006684, allocations: 8 kB / 407.6 MB, free: 4.898 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 7.712e-05/0.006761, allocations: 151.5 kB / 407.8 MB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/0.006777, allocations: 7.953 kB / 407.8 MB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.006913, allocations: 151.3 kB / 407.9 MB, free: 4.559 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.006916, allocations: 4 kB / 407.9 MB, free: 4.555 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.006922, allocations: 7.938 kB / 408 MB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.006925, allocations: 0 / 408 MB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.63e-05/0.007011, allocations: 156.7 kB / 408.1 MB, free: 4.352 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.32e-07/0.007012, allocations: 0 / 408.1 MB, free: 4.352 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.119e-05/0.007023, allocations: 4 kB / 408.1 MB, free: 4.348 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.007025, allocations: 0 / 408.1 MB, free: 4.348 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.395e-06/0.007033, allocations: 7.984 kB / 408.1 MB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.007034, allocations: 0 / 408.1 MB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.007037, allocations: 3.938 kB / 408.1 MB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.341e-05/0.00713, allocations: 156.4 kB / 408.3 MB, free: 4.152 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.29e-05/0.007143, allocations: 15.84 kB / 408.3 MB, free: 4.137 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.007155, allocations: 7.938 kB / 408.3 MB, free: 4.129 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.263e-05/0.007168, allocations: 8 kB / 408.3 MB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.435e-05/0.007192, allocations: 7.922 kB / 408.3 MB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/0.007196, allocations: 4 kB / 408.3 MB, free: 4.109 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.806e-05/0.007254, allocations: 119.8 kB / 408.4 MB, free: 3.992 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007254, allocations: 0 / 408.4 MB, free: 3.992 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001432/0.007397, allocations: 27.98 kB / 408.5 MB, free: 3.965 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.0003124/0.007709, allocations: 0.7101 MB / 409.2 MB, free: 3.211 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001424/0.007852, allocations: 170.8 kB / 409.3 MB, free: 3.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.007853, allocations: 8.062 kB / 409.3 MB, free: 3.012 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.946e-05/0.007893, allocations: 97.09 kB / 409.4 MB, free: 2.898 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001592/0.008052, allocations: 15.94 kB / 409.5 MB, free: 2.883 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.009421, allocations: 1.74 MB / 411.2 MB, free: 0.9883 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.172e-05/0.009473, allocations: 85.11 kB / 411.3 MB, free: 0.8867 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.15e-05/0.009555, allocations: 48.36 kB / 411.3 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.827e-05/0.009603, allocations: 36.48 kB / 411.4 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.009603, allocations: 0 / 411.4 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0167/0.0263, allocations: 3.027 MB / 414.4 MB, free: 13.9 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.653/6.68, allocations: 15.84 kB / 414.4 MB, free: 13.88 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 & /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/jenkins/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: 8.443366785533726]