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.0008865/0.0008865, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008317/0.0008317, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.8898/0.8898, allocations: 177.1 MB / 203.5 MB, free: 5.742 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.05608/0.05608, allocations: 12.64 MB / 272.6 MB, free: 0.7148 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: translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 403.5 MB, free: 10.17 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.369e-05/3.58e-05, allocations: 2.281 kB / 403.5 MB, free: 10.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002215/0.00225, allocations: 1.015 MB / 404.5 MB, free: 9.145 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007289/0.002979, allocations: 259.7 kB / 404.8 MB, free: 8.891 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.003101, allocations: 4 kB / 404.8 MB, free: 8.887 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.00328, allocations: 43.64 kB / 404.8 MB, free: 8.844 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002985/0.003579, allocations: 51.59 kB / 404.9 MB, free: 8.793 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.00379, allocations: 75.89 kB / 404.9 MB, free: 8.719 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003133/0.004103, allocations: 239.4 kB / 405.2 MB, free: 8.484 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.961e-05/0.004172, allocations: 16.58 kB / 405.2 MB, free: 8.469 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002231/0.004396, allocations: 159.7 kB / 405.3 MB, free: 8.312 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.927e-05/0.004465, allocations: 31.84 kB / 405.4 MB, free: 8.281 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.004488, allocations: 4 kB / 405.4 MB, free: 8.277 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.775e-05/0.004566, allocations: 12 kB / 405.4 MB, free: 8.266 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.045e-05/0.004656, allocations: 31.83 kB / 405.4 MB, free: 8.234 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.918e-05/0.004706, allocations: 23.8 kB / 405.4 MB, free: 8.211 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001986/0.004904, allocations: 83.72 kB / 405.5 MB, free: 8.129 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.004908, allocations: 0 / 405.5 MB, free: 8.129 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.00491, allocations: 0 / 405.5 MB, free: 8.129 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.004916, allocations: 4 kB / 405.5 MB, free: 8.125 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.000564/0.00548, allocations: 359.5 kB / 405.9 MB, free: 7.738 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.005526, allocations: 11.97 kB / 405.9 MB, free: 7.727 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.743e-05/0.005583, allocations: 16.89 kB / 405.9 MB, free: 7.711 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.005776, allocations: 142.1 kB / 406.1 MB, free: 7.547 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.012e-05/0.005806, allocations: 8.359 kB / 406.1 MB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.005827, allocations: 12.12 kB / 406.1 MB, free: 7.527 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002955/0.006123, allocations: 160.3 kB / 406.2 MB, free: 7.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.006131, allocations: 0 / 406.2 MB, free: 7.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.006148, allocations: 12 kB / 406.2 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.006155, allocations: 3.984 kB / 406.2 MB, free: 7.324 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002013/0.006356, allocations: 97.53 kB / 406.3 MB, free: 7.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000704/0.00706, allocations: 0.677 MB / 407 MB, free: 6.496 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.007236, allocations: 107 kB / 407.1 MB, free: 6.367 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.832e-05/0.007305, allocations: 63.41 kB / 407.2 MB, free: 6.293 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.007316, allocations: 3.938 kB / 407.2 MB, free: 6.289 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002306/0.007546, allocations: 118.8 kB / 407.3 MB, free: 6.148 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 2.856e-06/0.007549, allocations: 0 / 407.3 MB, free: 6.148 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003385/0.007888, allocations: 218.5 kB / 407.5 MB, free: 5.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.007947, allocations: 106.8 kB / 407.6 MB, free: 5.781 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.008084, allocations: 171.2 kB / 407.8 MB, free: 5.598 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.008103, allocations: 29.7 kB / 407.8 MB, free: 5.562 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.598e-05/0.008179, allocations: 116 kB / 407.9 MB, free: 5.445 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.008204, allocations: 31.75 kB / 408 MB, free: 5.414 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.874e-05/0.008263, allocations: 37.66 kB / 408 MB, free: 5.371 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.008369, allocations: 326.8 kB / 408.3 MB, free: 5.043 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.181e-05/0.008451, allocations: 61.88 kB / 408.4 MB, free: 4.977 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.667e-05/0.008547, allocations: 108.5 kB / 408.5 MB, free: 4.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/0.008864, allocations: 265.5 kB / 408.7 MB, free: 4.531 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.008868, allocations: 0 / 408.7 MB, free: 4.531 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002687/0.009136, allocations: 208.8 kB / 408.9 MB, free: 4.309 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.66e-05/0.009173, allocations: 32.67 kB / 409 MB, free: 4.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.009181, allocations: 4 kB / 409 MB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.009201, allocations: 19.8 kB / 409 MB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.432e-05/0.009286, allocations: 16 kB / 409 MB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.009292, allocations: 0 / 409 MB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.609e-05/0.009358, allocations: 19.88 kB / 409 MB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.009377, allocations: 8 kB / 409 MB, free: 4.207 MB / 378.7 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.0001738/0.009551, allocations: 164.3 kB / 409.2 MB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.064e-05/0.009571, allocations: 11.95 kB / 409.2 MB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.183e-05/0.009603, allocations: 17.14 kB / 409.2 MB, free: 4.004 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.009607, allocations: 3.938 kB / 409.2 MB, free: 4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.009613, allocations: 0 / 409.2 MB, free: 4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.009619, allocations: 4.188 kB / 409.2 MB, free: 3.996 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004248/0.01004, allocations: 472.8 kB / 409.7 MB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01005, allocations: 4 kB / 409.7 MB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.69e-05/0.01007, allocations: 8.062 kB / 409.7 MB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.01008, allocations: 3.938 kB / 409.7 MB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.01009, allocations: 4 kB / 409.7 MB, free: 3.465 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.01009, allocations: 4 kB / 409.7 MB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.01009, allocations: 0 / 409.7 MB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.01034, allocations: 334.1 kB / 410.1 MB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.924e-05/0.01036, allocations: 19.78 kB / 410.1 MB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.01038, allocations: 3.984 kB / 410.1 MB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.732e-05/0.01047, allocations: 8 kB / 410.1 MB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.605e-05/0.01052, allocations: 11.98 kB / 410.1 MB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.01053, allocations: 4 kB / 410.1 MB, free: 3.059 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.967e-05/0.01061, allocations: 116 kB / 410.2 MB, free: 2.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01061, allocations: 4.094 kB / 410.2 MB, free: 2.941 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003244/0.01094, allocations: 27.92 kB / 410.2 MB, free: 2.914 MB / 378.7 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.0001504/0.01109, allocations: 95.25 kB / 410.3 MB, free: 2.812 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.01134, allocations: 198.6 kB / 410.5 MB, free: 2.594 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.01134, allocations: 384 / 410.5 MB, free: 2.594 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.01145, allocations: 117 kB / 410.6 MB, free: 2.461 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.01179, allocations: 15.98 kB / 410.7 MB, free: 2.445 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005667/0.01236, allocations: 286.4 kB / 410.9 MB, free: 2.121 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.546e-05/0.01245, allocations: 93.17 kB / 411 MB, free: 2.008 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.686e-05/0.0125, allocations: 24.42 kB / 411.1 MB, free: 1.984 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.0125, allocations: 0 / 411.1 MB, free: 1.984 MB / 378.7 MB Notification: Performance of Templates: time 0.003151/0.01565, allocations: 1.468 MB / 412.5 MB, free: 0.5156 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.DisTest.SingleTD.makefile [Timeout 660] (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 & ./PNlib_PNlib.Examples.DisTest.SingleTD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) [Timeout 480] diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.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.529794871807098]