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.001297/0.001297, allocations: 77.33 kB / 19.18 MB, free: 2.512 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.001779/0.001779, allocations: 161.2 kB / 22.46 MB, free: 5.391 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.432/1.432, allocations: 177.1 MB / 202.8 MB, free: 9.148 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.07741/0.07741, allocations: 12.65 MB / 271.8 MB, free: 4.156 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.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.432e-06/1.432e-06, allocations: 0 / 402.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.683e-05/2.826e-05, allocations: 8.609 kB / 402.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002021/0.002049, allocations: 0.9968 MB / 403.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006664/0.002716, allocations: 271.7 kB / 404 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.661e-05/0.002802, allocations: 4 kB / 404 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000186/0.002988, allocations: 43.66 kB / 404.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002789/0.003267, allocations: 39.72 kB / 404.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001638/0.003431, allocations: 75.83 kB / 404.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003347/0.003766, allocations: 243.4 kB / 404.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.752e-05/0.003823, allocations: 12.59 kB / 404.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002334/0.004057, allocations: 167.7 kB / 404.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.309e-05/0.00413, allocations: 27.84 kB / 404.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.004156, allocations: 4 kB / 404.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.929e-05/0.004215, allocations: 8 kB / 404.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.127e-05/0.004306, allocations: 31.78 kB / 404.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.455e-05/0.004361, allocations: 23.92 kB / 404.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001924/0.004553, allocations: 79.7 kB / 404.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.853e-06/0.004555, allocations: 0 / 404.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.11e-07/0.004556, allocations: 4 kB / 404.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.004564, allocations: 4 kB / 404.8 MB, free: 12.68 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006127/0.005177, allocations: 371.3 kB / 405.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.005218, allocations: 8.031 kB / 405.1 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.997e-05/0.005268, allocations: 12.89 kB / 405.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000199/0.005467, allocations: 145.1 kB / 405.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.027e-05/0.005497, allocations: 12.38 kB / 405.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.334e-05/0.005521, allocations: 8.125 kB / 405.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003413/0.005862, allocations: 168.4 kB / 405.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.005875, allocations: 0 / 405.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.005889, allocations: 4 kB / 405.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.005897, allocations: 4 kB / 405.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/0.006135, allocations: 89.59 kB / 405.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007706/0.006905, allocations: 0.6886 MB / 406.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/0.007122, allocations: 106.9 kB / 406.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.647e-05/0.007218, allocations: 59.41 kB / 406.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-06/0.007226, allocations: 0 / 406.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.007425, allocations: 130.8 kB / 406.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.007426, allocations: 0 / 406.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004225/0.007849, allocations: 210.5 kB / 406.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.28e-05/0.007931, allocations: 118.8 kB / 406.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.008108, allocations: 169.1 kB / 407 MB, free: 10.14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.008131, allocations: 29.7 kB / 407.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.69e-05/0.008218, allocations: 112 kB / 407.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.008249, allocations: 23.83 kB / 407.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-05/0.00831, allocations: 41.7 kB / 407.2 MB, free: 9.926 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.00846, allocations: 318.8 kB / 407.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.809e-05/0.008558, allocations: 65.58 kB / 407.6 MB, free: 9.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.008701, allocations: 115.1 kB / 407.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003877/0.009088, allocations: 257.5 kB / 408 MB, free: 9.094 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.009091, allocations: 0 / 408 MB, free: 9.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003402/0.009431, allocations: 220.8 kB / 408.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.571e-05/0.009467, allocations: 33.7 kB / 408.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.009473, allocations: 0 / 408.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.889e-05/0.009491, allocations: 7.938 kB / 408.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.438e-05/0.009586, allocations: 20.23 kB / 408.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.009595, allocations: 4 kB / 408.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.311e-05/0.009668, allocations: 15.89 kB / 408.3 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.009689, allocations: 12 kB / 408.3 MB, free: 8.762 MB / 334.1 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.0002012/0.00989, allocations: 173.7 kB / 408.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.142e-05/0.009911, allocations: 7.953 kB / 408.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.836e-05/0.00995, allocations: 21.14 kB / 408.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.009954, allocations: 3.938 kB / 408.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.009959, allocations: 4 kB / 408.5 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.009963, allocations: 0 / 408.5 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005366/0.0105, allocations: 461 kB / 408.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.0105, allocations: 4 kB / 408.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.092e-05/0.01053, allocations: 4 kB / 408.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-05/0.01054, allocations: 7.969 kB / 409 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.01056, allocations: 4 kB / 409 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.01056, allocations: 0 / 409 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01056, allocations: 0 / 409 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003396/0.0109, allocations: 338 kB / 409.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.379e-05/0.01092, allocations: 23.78 kB / 409.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.01094, allocations: 4 kB / 409.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.01105, allocations: 3.984 kB / 409.3 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.775e-05/0.01112, allocations: 23.92 kB / 409.3 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.01112, allocations: 0 / 409.3 MB, free: 7.613 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001007/0.01122, allocations: 124.9 kB / 409.5 MB, free: 7.492 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01122, allocations: 0 / 409.5 MB, free: 7.492 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003078/0.01153, allocations: 16 kB / 409.5 MB, free: 7.477 MB / 334.1 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.0001518/0.01168, allocations: 111.2 kB / 409.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003246/0.01201, allocations: 194.6 kB / 409.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.01201, allocations: 384 / 409.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.01215, allocations: 117.1 kB / 409.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003271/0.01248, allocations: 12.31 kB / 409.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005615/0.01304, allocations: 268.5 kB / 410.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001024/0.01314, allocations: 89.31 kB / 410.3 MB, free: 6.586 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.957e-05/0.01322, allocations: 28.95 kB / 410.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.176e-05/0.01326, allocations: 20.5 kB / 410.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.01326, allocations: 0 / 410.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of Templates: time 0.004162/0.01743, allocations: 1.007 MB / 411.3 MB, free: 5.535 MB / 334.1 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.382180329412222]