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.0008811/0.0008811, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001053/0.001934, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0006719/0.0006719, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008102/0.001482, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.078/1.078, allocations: 177.1 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1017/1.18, allocations: 53.66 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.04914/0.04914, allocations: 12.67 MB / 256.6 MB, free: 2.344 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.008239/0.05738, allocations: 4.679 MB / 261.3 MB, free: 13.65 MB / 266.7 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-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.132e-06/1.132e-06, allocations: 0 / 262.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.088e-05/1.201e-05, allocations: 2.312 kB / 262.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001974/0.001986, allocations: 1.063 MB / 263.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005824/0.002568, allocations: 283.6 kB / 263.9 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.002669, allocations: 4 kB / 263.9 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.002789, allocations: 39.72 kB / 264 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001737/0.002963, allocations: 43.61 kB / 264 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001787/0.003142, allocations: 79.81 kB / 264.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000326/0.003468, allocations: 243.4 kB / 264.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.67e-05/0.003525, allocations: 10.56 kB / 264.4 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002466/0.003771, allocations: 183.7 kB / 264.5 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.883e-05/0.00384, allocations: 27.78 kB / 264.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.105e-05/0.003861, allocations: 8 kB / 264.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.919e-05/0.00394, allocations: 15.98 kB / 264.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.784e-05/0.004008, allocations: 23.86 kB / 264.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.938e-05/0.004048, allocations: 15.94 kB / 264.6 MB, free: 10.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001509/0.004198, allocations: 63.69 kB / 264.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.481e-05/0.004213, allocations: 0 / 264.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.004214, allocations: 0 / 264.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.004231, allocations: 0 / 264.7 MB, free: 10.27 MB / 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.0005403/0.004771, allocations: 353.8 kB / 265 MB, free: 9.891 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.004806, allocations: 11.98 kB / 265 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.889e-05/0.004855, allocations: 20.92 kB / 265.1 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.005027, allocations: 138.1 kB / 265.2 MB, free: 9.699 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.00505, allocations: 12.31 kB / 265.2 MB, free: 9.688 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.838e-05/0.005068, allocations: 16.11 kB / 265.2 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002135/0.005282, allocations: 157 kB / 265.4 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.005296, allocations: 0 / 265.4 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.00531, allocations: 8 kB / 265.4 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.005317, allocations: 0 / 265.4 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.045e-05/0.005407, allocations: 61.61 kB / 265.4 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005326/0.00594, allocations: 0.6171 MB / 266.1 MB, free: 8.758 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.006057, allocations: 86.86 kB / 266.1 MB, free: 8.648 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.846e-05/0.006095, allocations: 51.41 kB / 266.2 MB, free: 8.586 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.234e-06/0.006103, allocations: 0 / 266.2 MB, free: 8.586 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001313/0.006234, allocations: 114.7 kB / 266.3 MB, free: 8.449 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.006235, allocations: 0 / 266.3 MB, free: 8.449 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001842/0.006419, allocations: 154.7 kB / 266.5 MB, free: 8.273 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.006465, allocations: 85.05 kB / 266.5 MB, free: 8.172 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.006581, allocations: 175.2 kB / 266.7 MB, free: 7.984 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.006598, allocations: 33.7 kB / 266.7 MB, free: 7.945 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.802e-05/0.006656, allocations: 112 kB / 266.9 MB, free: 7.832 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.431e-05/0.00668, allocations: 23.81 kB / 266.9 MB, free: 7.809 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.416e-05/0.006734, allocations: 45.69 kB / 266.9 MB, free: 7.758 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.586e-05/0.00683, allocations: 326.8 kB / 267.2 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.091e-05/0.006861, allocations: 33.7 kB / 267.3 MB, free: 7.391 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.893e-05/0.00693, allocations: 103.7 kB / 267.4 MB, free: 7.262 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.007084, allocations: 194.9 kB / 267.6 MB, free: 7.027 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.007087, allocations: 4 kB / 267.6 MB, free: 7.023 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001788/0.007266, allocations: 160.9 kB / 267.7 MB, free: 6.848 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.887e-05/0.007304, allocations: 37.69 kB / 267.8 MB, free: 6.805 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.00731, allocations: 0 / 267.8 MB, free: 6.805 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.007321, allocations: 4 kB / 267.8 MB, free: 6.801 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.405e-05/0.007405, allocations: 24.12 kB / 267.8 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.007414, allocations: 11.92 kB / 267.8 MB, free: 6.766 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.712e-05/0.007471, allocations: 15.89 kB / 267.8 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.007483, allocations: 8 kB / 267.8 MB, free: 6.742 MB / 266.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.enabledByOutPlaces,T1.enabledByInPlaces,$whenCondition1,T1.firingCon) * 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.0001289/0.007612, allocations: 150.3 kB / 268 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.007635, allocations: 15.98 kB / 268 MB, free: 6.562 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.881e-05/0.007663, allocations: 21.08 kB / 268 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.007665, allocations: 4 kB / 268 MB, free: 6.535 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.007668, allocations: 3.938 kB / 268 MB, free: 6.531 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.007673, allocations: 4 kB / 268 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002936/0.007967, allocations: 369.4 kB / 268.4 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.007968, allocations: 0 / 268.4 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.801e-05/0.007997, allocations: 7.938 kB / 268.4 MB, free: 6.121 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.778e-05/0.008014, allocations: 19.83 kB / 268.4 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.008017, allocations: 240 / 268.4 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-06/0.008026, allocations: 7.938 kB / 268.4 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.008027, allocations: 128 / 268.4 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.00803, allocations: 4 kB / 268.4 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.0082, allocations: 302.1 kB / 268.7 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.765e-05/0.008217, allocations: 4 kB / 268.7 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.545e-05/0.008313, allocations: 7.938 kB / 268.7 MB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.008357, allocations: 15.97 kB / 268.7 MB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.008363, allocations: 0 / 268.7 MB, free: 5.738 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.036e-05/0.008403, allocations: 37.53 kB / 268.8 MB, free: 5.699 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008404, allocations: 0 / 268.8 MB, free: 5.699 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002871/0.008691, allocations: 23.98 kB / 268.8 MB, free: 5.676 MB / 266.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.0001044/0.008795, allocations: 84.41 kB / 268.9 MB, free: 5.586 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001694/0.008964, allocations: 175.5 kB / 269.1 MB, free: 5.387 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.00897, allocations: 0 / 269.1 MB, free: 5.387 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.984e-05/0.00905, allocations: 113.9 kB / 269.2 MB, free: 5.254 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.009324, allocations: 20.08 kB / 269.2 MB, free: 5.234 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004822/0.009806, allocations: 266.7 kB / 269.4 MB, free: 4.938 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.889e-05/0.009855, allocations: 63.34 kB / 269.5 MB, free: 4.855 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.522e-05/0.00991, allocations: 21.33 kB / 269.5 MB, free: 4.836 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.065e-05/0.009981, allocations: 63.38 kB / 269.6 MB, free: 4.773 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.009982, allocations: 0 / 269.6 MB, free: 4.773 MB / 266.7 MB Notification: Performance of Templates: time 0.003957/0.01394, allocations: 1.127 MB / 270.7 MB, free: 3.664 MB / 266.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 -ignoreHideResult -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.6210396494716406]