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.001824/0.001824, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 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.001986/0.001986, allocations: 173.6 kB / 22.76 MB, free: 1.664 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 1.567/1.567, allocations: 177.1 MB / 203.1 MB, free: 5.445 MB / 186.7 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.08728/0.08728, allocations: 12.66 MB / 272.2 MB, free: 360 kB / 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 1.151e-05/1.151e-05, allocations: 3.984 kB / 345.7 MB, free: 2.254 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.909e-05/4.06e-05, allocations: 5.125 kB / 345.8 MB, free: 2.25 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001804/0.001844, allocations: 1.012 MB / 346.8 MB, free: 1.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005687/0.002413, allocations: 283.7 kB / 347 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.113e-05/0.002494, allocations: 0 / 347 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.002648, allocations: 39.72 kB / 347.1 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000224/0.002872, allocations: 43.66 kB / 347.1 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001389/0.003011, allocations: 75.89 kB / 347.2 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001948/0.003206, allocations: 243.3 kB / 347.4 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.268e-05/0.003248, allocations: 8.594 kB / 347.4 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.003397, allocations: 163.7 kB / 347.6 MB, free: 400 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.222e-05/0.00345, allocations: 27.78 kB / 347.6 MB, free: 372 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.00347, allocations: 4 kB / 347.6 MB, free: 368 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.394e-05/0.003524, allocations: 16 kB / 347.7 MB, free: 352 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.513e-05/0.003589, allocations: 31.83 kB / 347.7 MB, free: 320 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.241e-05/0.003632, allocations: 15.94 kB / 347.7 MB, free: 304 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.003777, allocations: 91.64 kB / 347.8 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.00378, allocations: 0 / 347.8 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.003781, allocations: 0 / 347.8 MB, free: 212 kB / 266.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.003787, allocations: 0 / 347.8 MB, free: 212 kB / 266.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.0006265/0.004413, allocations: 465.5 kB / 348.2 MB, free: 15.71 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.004457, allocations: 12.03 kB / 348.3 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.872e-05/0.004526, allocations: 20.84 kB / 348.3 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.004753, allocations: 164 kB / 348.4 MB, free: 15.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.004778, allocations: 8.375 kB / 348.4 MB, free: 15.49 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.283e-05/0.004801, allocations: 16.11 kB / 348.5 MB, free: 15.47 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000367/0.005168, allocations: 181.4 kB / 348.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.005179, allocations: 0 / 348.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.005192, allocations: 0 / 348.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.005199, allocations: 4 kB / 348.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002429/0.005442, allocations: 89.59 kB / 348.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.006492, allocations: 0.9787 MB / 349.7 MB, free: 14.12 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002687/0.00676, allocations: 127.9 kB / 349.8 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.006897, allocations: 57.08 kB / 349.9 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.00691, allocations: 4 kB / 349.9 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.00713, allocations: 130 kB / 350 MB, free: 13.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.032e-06/0.007131, allocations: 0 / 350 MB, free: 13.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.000469/0.0076, allocations: 226.5 kB / 350.2 MB, free: 13.49 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.726e-05/0.007697, allocations: 102.8 kB / 350.3 MB, free: 13.36 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.007956, allocations: 253 kB / 350.6 MB, free: 13.1 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.007979, allocations: 29.7 kB / 350.6 MB, free: 13.06 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.008106, allocations: 162.8 kB / 350.8 MB, free: 12.9 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.682e-05/0.008143, allocations: 31.78 kB / 350.8 MB, free: 12.87 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.174e-05/0.008224, allocations: 47.36 kB / 350.9 MB, free: 12.81 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002774/0.008502, allocations: 0.4962 MB / 351.3 MB, free: 12.3 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.008607, allocations: 61.67 kB / 351.4 MB, free: 12.24 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.008793, allocations: 127.2 kB / 351.5 MB, free: 12.07 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003577/0.00915, allocations: 258.6 kB / 351.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.009156, allocations: 4 kB / 351.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003556/0.009511, allocations: 208.8 kB / 352 MB, free: 11.54 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/0.009559, allocations: 36.19 kB / 352 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.009566, allocations: 4 kB / 352 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.567e-05/0.009592, allocations: 8.125 kB / 352 MB, free: 11.49 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.009715, allocations: 23.94 kB / 352.1 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.009727, allocations: 7.984 kB / 352.1 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.853e-05/0.009795, allocations: 11.89 kB / 352.1 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.585e-05/0.009821, allocations: 12 kB / 352.1 MB, free: 11.44 MB / 282.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.0002464/0.01007, allocations: 214.3 kB / 352.3 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.381e-05/0.0101, allocations: 15.94 kB / 352.3 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.806e-05/0.01014, allocations: 13.16 kB / 352.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.01014, allocations: 7.938 kB / 352.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.01015, allocations: 4 kB / 352.3 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.01015, allocations: 0 / 352.3 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000711/0.01087, allocations: 0.5663 MB / 352.9 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.01087, allocations: 0 / 352.9 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.153e-05/0.0109, allocations: 4 kB / 352.9 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.0109, allocations: 3.938 kB / 352.9 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.01092, allocations: 4 kB / 352.9 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.01093, allocations: 3.938 kB / 352.9 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.01093, allocations: 3.984 kB / 352.9 MB, free: 10.53 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004419/0.01137, allocations: 442.3 kB / 353.4 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.626e-05/0.0114, allocations: 19.78 kB / 353.4 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.726e-05/0.01142, allocations: 8.109 kB / 353.4 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.01153, allocations: 8 kB / 353.4 MB, free: 10.03 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.818e-05/0.0116, allocations: 7.984 kB / 353.4 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-06/0.01161, allocations: 4 kB / 353.4 MB, free: 10.02 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001361/0.01175, allocations: 168.8 kB / 353.6 MB, free: 9.855 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01175, allocations: 0 / 353.6 MB, free: 9.855 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002928/0.01204, allocations: 19.98 kB / 353.6 MB, free: 9.836 MB / 282.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.0001733/0.01222, allocations: 103.2 kB / 353.7 MB, free: 9.727 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003822/0.0126, allocations: 213.4 kB / 353.9 MB, free: 9.492 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.0126, allocations: 0 / 353.9 MB, free: 9.492 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004308/0.01303, allocations: 128.7 kB / 354 MB, free: 9.344 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.01336, allocations: 8 kB / 354 MB, free: 9.336 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006562/0.01401, allocations: 280.4 kB / 354.3 MB, free: 9.023 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.01413, allocations: 97.67 kB / 354.4 MB, free: 8.906 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.958e-05/0.0142, allocations: 12.97 kB / 354.4 MB, free: 8.895 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.438e-05/0.01425, allocations: 20.48 kB / 354.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01425, allocations: 0 / 354.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of Templates: time 0.004623/0.01887, allocations: 1.047 MB / 355.5 MB, free: 7.844 MB / 282.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=240 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) [Timeout 240] 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.597533520893194]