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.001034/0.001034, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001216/0.001216, allocations: 173 kB / 23.49 MB, free: 1.059 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.021/1.021, allocations: 177.1 MB / 203.8 MB, free: 5.656 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.04986/0.04986, allocations: 12.66 MB / 272.9 MB, free: 0.582 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 1.242e-06/1.242e-06, allocations: 0 / 346.5 MB, free: 2.262 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.57e-05/1.694e-05, allocations: 4.703 kB / 346.5 MB, free: 2.258 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001362/0.001379, allocations: 1.028 MB / 347.5 MB, free: 1.223 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006424/0.002021, allocations: 267.7 kB / 347.8 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.002144, allocations: 4 kB / 347.8 MB, free: 0.957 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001707/0.002314, allocations: 43.7 kB / 347.8 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000261/0.002575, allocations: 39.67 kB / 347.9 MB, free: 0.875 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001738/0.002749, allocations: 87.75 kB / 348 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.002991, allocations: 235.4 kB / 348.2 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.29e-05/0.003044, allocations: 12.59 kB / 348.2 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.003219, allocations: 167.7 kB / 348.4 MB, free: 392 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.762e-05/0.003276, allocations: 27.84 kB / 348.4 MB, free: 364 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.149e-05/0.003298, allocations: 4 kB / 348.4 MB, free: 360 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.703e-05/0.003355, allocations: 15.98 kB / 348.4 MB, free: 344 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.535e-05/0.00343, allocations: 27.84 kB / 348.4 MB, free: 316 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.521e-05/0.003475, allocations: 23.86 kB / 348.5 MB, free: 292 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.003643, allocations: 55.81 kB / 348.5 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.003646, allocations: 0 / 348.5 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.003647, allocations: 0 / 348.5 MB, free: 236 kB / 266.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.003651, allocations: 0 / 348.5 MB, free: 236 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.0004374/0.004088, allocations: 473.7 kB / 349 MB, free: 15.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0002293/0.004318, allocations: 8.031 kB / 349 MB, free: 15.72 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.538e-05/0.004383, allocations: 24.84 kB / 349 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.004536, allocations: 150.6 kB / 349.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.004558, allocations: 4.375 kB / 349.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.004573, allocations: 16.12 kB / 349.2 MB, free: 15.5 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000208/0.004781, allocations: 170.1 kB / 349.3 MB, free: 15.3 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.004789, allocations: 4 kB / 349.3 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.0048, allocations: 4 kB / 349.3 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.004808, allocations: 4 kB / 349.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.004922, allocations: 65.61 kB / 349.4 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006128/0.005535, allocations: 0.9669 MB / 350.4 MB, free: 14.19 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001186/0.005653, allocations: 115.9 kB / 350.5 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.463e-05/0.005688, allocations: 45.08 kB / 350.5 MB, free: 13.98 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-06/0.005695, allocations: 4 kB / 350.5 MB, free: 13.98 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001056/0.005801, allocations: 126 kB / 350.7 MB, free: 13.83 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.182e-06/0.005802, allocations: 0 / 350.7 MB, free: 13.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002131/0.006015, allocations: 194.8 kB / 350.9 MB, free: 13.61 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.00606, allocations: 114.8 kB / 351 MB, free: 13.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.006176, allocations: 224.6 kB / 351.2 MB, free: 13.24 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.006189, allocations: 29.7 kB / 351.2 MB, free: 13.2 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.362e-05/0.006252, allocations: 162.7 kB / 351.4 MB, free: 13.04 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.006267, allocations: 15.91 kB / 351.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.225e-05/0.006309, allocations: 47.36 kB / 351.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.006411, allocations: 0.4923 MB / 351.9 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.966e-05/0.006451, allocations: 41.69 kB / 352 MB, free: 12.42 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.00664, allocations: 123.2 kB / 352.1 MB, free: 12.26 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.006783, allocations: 226.4 kB / 352.3 MB, free: 11.98 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.006785, allocations: 0 / 352.3 MB, free: 11.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001593/0.006944, allocations: 192.8 kB / 352.5 MB, free: 11.78 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.006968, allocations: 41.62 kB / 352.5 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.006973, allocations: 4.188 kB / 352.5 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.006987, allocations: 7.938 kB / 352.6 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.609e-05/0.007053, allocations: 19.94 kB / 352.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.007059, allocations: 0 / 352.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.128e-05/0.0071, allocations: 19.92 kB / 352.6 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.007111, allocations: 4 kB / 352.6 MB, free: 11.68 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.0001218/0.007233, allocations: 210 kB / 352.8 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.749e-05/0.007251, allocations: 19.94 kB / 352.8 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.219e-05/0.007273, allocations: 13.16 kB / 352.8 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.007276, allocations: 3.938 kB / 352.8 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.007279, allocations: 0 / 352.8 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.007283, allocations: 4 kB / 352.8 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003064/0.007589, allocations: 0.5431 MB / 353.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.007591, allocations: 0 / 353.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.773e-05/0.007609, allocations: 7.984 kB / 353.4 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.007613, allocations: 7.938 kB / 353.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.545e-06/0.00762, allocations: 3.938 kB / 353.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.007621, allocations: 0 / 353.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.007622, allocations: 4 kB / 353.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001724/0.007795, allocations: 422.4 kB / 353.8 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.307e-05/0.007808, allocations: 15.84 kB / 353.8 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.007824, allocations: 3.984 kB / 353.8 MB, free: 10.33 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.405e-05/0.007878, allocations: 8 kB / 353.8 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.632e-05/0.007934, allocations: 7.984 kB / 353.9 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-06/0.007941, allocations: 4 kB / 353.9 MB, free: 10.31 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.415e-05/0.008005, allocations: 156.8 kB / 354 MB, free: 10.16 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008005, allocations: 4 kB / 354 MB, free: 10.16 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002047/0.00821, allocations: 23.98 kB / 354 MB, free: 10.13 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.0001014/0.008311, allocations: 99.25 kB / 354.1 MB, free: 10.03 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001866/0.008498, allocations: 186.3 kB / 354.3 MB, free: 9.816 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.008499, allocations: 0 / 354.3 MB, free: 9.816 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.346e-05/0.008562, allocations: 116.7 kB / 354.4 MB, free: 9.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002247/0.008787, allocations: 8 kB / 354.4 MB, free: 9.672 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003989/0.009186, allocations: 268.7 kB / 354.7 MB, free: 9.371 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.555e-05/0.009232, allocations: 75.5 kB / 354.8 MB, free: 9.277 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.776e-05/0.009279, allocations: 28.94 kB / 354.8 MB, free: 9.25 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.16e-05/0.009311, allocations: 12.5 kB / 354.8 MB, free: 9.238 MB / 282.7 MB Notification: Performance of SimCode: time 6.52e-07/0.009312, allocations: 0 / 354.8 MB, free: 9.238 MB / 282.7 MB Notification: Performance of Templates: time 0.002738/0.01205, allocations: 1.049 MB / 355.9 MB, free: 8.211 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.82660728902556]