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.001503/0.001503, allocations: 81.61 kB / 19.18 MB, free: 2.531 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.001486/0.001486, allocations: 167.7 kB / 22.46 MB, free: 5.355 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.436/1.436, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.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.07845/0.07845, allocations: 12.66 MB / 271.8 MB, free: 4.176 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: translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 402.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.478e-05/2.646e-05, allocations: 8.891 kB / 402.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002116/0.002142, allocations: 0.9962 MB / 403.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009074/0.00305, allocations: 386.8 kB / 404.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.013e-05/0.00314, allocations: 3.938 kB / 404.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.00332, allocations: 47.7 kB / 404.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002923/0.003612, allocations: 55.53 kB / 404.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002723/0.003884, allocations: 127.8 kB / 404.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004941/0.004378, allocations: 303.3 kB / 404.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.318e-05/0.004442, allocations: 16.58 kB / 404.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002483/0.00469, allocations: 199.7 kB / 404.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.65e-05/0.004786, allocations: 43.77 kB / 404.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.082e-05/0.004807, allocations: 8 kB / 404.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.004948, allocations: 63.81 kB / 405 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.178e-05/0.00503, allocations: 27.84 kB / 405 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.175e-05/0.005082, allocations: 23.86 kB / 405 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002324/0.005314, allocations: 123.7 kB / 405.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.005317, allocations: 0 / 405.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.005317, allocations: 0 / 405.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.005321, allocations: 0 / 405.1 MB, free: 12.34 MB / 334.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.0005382/0.005859, allocations: 347.5 kB / 405.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.0059, allocations: 8.031 kB / 405.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.622e-05/0.005956, allocations: 16.84 kB / 405.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.006153, allocations: 150.1 kB / 405.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.006175, allocations: 4.375 kB / 405.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/0.006202, allocations: 8.375 kB / 405.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.006434, allocations: 136 kB / 405.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.006444, allocations: 3.938 kB / 405.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.006456, allocations: 4 kB / 405.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.00646, allocations: 0 / 405.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.006597, allocations: 77.61 kB / 405.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007911/0.007388, allocations: 0.6064 MB / 406.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002852/0.007674, allocations: 80.25 kB / 406.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.721e-05/0.007731, allocations: 42.75 kB / 406.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.007748, allocations: 8 kB / 406.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.007771, allocations: 30.56 kB / 406.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.007773, allocations: 0 / 406.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004036/0.008176, allocations: 182.6 kB / 406.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.008231, allocations: 81.11 kB / 406.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.008483, allocations: 173.8 kB / 407.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.008501, allocations: 25.7 kB / 407.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.008683, allocations: 112 kB / 407.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.008702, allocations: 23.8 kB / 407.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.717e-05/0.00876, allocations: 33.7 kB / 407.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002391/0.008999, allocations: 326.8 kB / 407.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.693e-05/0.009066, allocations: 45.8 kB / 407.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.073e-05/0.009156, allocations: 85.92 kB / 407.7 MB, free: 9.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.009307, allocations: 127.6 kB / 407.8 MB, free: 9.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.009309, allocations: 0 / 407.8 MB, free: 9.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002504/0.00956, allocations: 176.9 kB / 408 MB, free: 9.145 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.056e-05/0.00961, allocations: 37.69 kB / 408 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.009615, allocations: 0 / 408 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.009634, allocations: 0 / 408 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.17e-05/0.009695, allocations: 15.94 kB / 408 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.009709, allocations: 8.062 kB / 408.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.763e-05/0.009757, allocations: 7.891 kB / 408.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.009777, allocations: 15.98 kB / 408.1 MB, free: 9.055 MB / 334.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.0001452/0.009922, allocations: 143.5 kB / 408.2 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.666e-05/0.009959, allocations: 16.03 kB / 408.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/0.01022, allocations: 155.3 kB / 408.4 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.01022, allocations: 0 / 408.4 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.01023, allocations: 0 / 408.4 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.01024, allocations: 7.922 kB / 408.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.01041, allocations: 129.5 kB / 408.5 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.01041, allocations: 4 kB / 408.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.198e-05/0.01043, allocations: 4 kB / 408.5 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.01043, allocations: 0 / 408.5 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.01045, allocations: 4 kB / 408.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.01045, allocations: 4 kB / 408.5 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01045, allocations: 4 kB / 408.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002135/0.01067, allocations: 164.4 kB / 408.7 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.519e-05/0.01068, allocations: 7.953 kB / 408.7 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.0107, allocations: 0 / 408.7 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.933e-05/0.01072, allocations: 0 / 408.7 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.352e-05/0.01075, allocations: 8 kB / 408.7 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.01076, allocations: 11.86 kB / 408.7 MB, free: 8.309 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001077/0.01087, allocations: 124 kB / 408.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01087, allocations: 0 / 408.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002314/0.0111, allocations: 31.81 kB / 408.9 MB, free: 8.156 MB / 334.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.000185/0.01129, allocations: 123.9 kB / 409 MB, free: 8.027 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002284/0.01152, allocations: 162.7 kB / 409.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01152, allocations: 0 / 409.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.702e-05/0.0116, allocations: 101.1 kB / 409.3 MB, free: 7.727 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/0.01184, allocations: 7.906 kB / 409.3 MB, free: 7.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006466/0.01248, allocations: 266.9 kB / 409.5 MB, free: 7.422 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.839e-05/0.01257, allocations: 92.52 kB / 409.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001552/0.01273, allocations: 48.53 kB / 409.7 MB, free: 7.266 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.18e-05/0.01277, allocations: 24.48 kB / 409.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.01277, allocations: 4 kB / 409.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of Templates: time 0.003734/0.0165, allocations: 0.8656 MB / 410.6 MB, free: 6.383 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.ConTest.SingleTC.makefile [Timeout 660] (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 & ./PNlib_PNlib.Examples.ConTest.SingleTC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) [Timeout 480] 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: 4.22399315610528]