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.0007277/0.0007277, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001078/0.001806, allocations: 440 kB / 10.41 MB, free: 284 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.0006899/0.0006899, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009844/0.001674, allocations: 475.6 kB / 11.79 MB, free: 2.375 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 0.9968/0.9968, allocations: 177.2 MB / 189.7 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1037/1.1, allocations: 53.67 MB / 243.4 MB, free: 15.5 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.05833/0.05833, allocations: 12.65 MB / 256.8 MB, free: 2.27 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01108/0.06941, allocations: 4.695 MB / 261.5 MB, free: 13.56 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.714e-06/1.714e-06, allocations: 0 / 262.8 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.408e-05/2.579e-05, allocations: 2.312 kB / 262.8 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002387/0.002413, allocations: 1.074 MB / 263.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003701/0.006114, allocations: 275.5 kB / 264.1 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.00622, allocations: 4 kB / 264.1 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.006357, allocations: 43.66 kB / 264.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001809/0.006538, allocations: 47.64 kB / 264.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001712/0.006709, allocations: 71.84 kB / 264.3 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000296/0.007005, allocations: 243.4 kB / 264.5 MB, free: 10.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.982e-05/0.007065, allocations: 18.55 kB / 264.6 MB, free: 10.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000236/0.007301, allocations: 179.7 kB / 264.7 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.292e-05/0.007374, allocations: 31.83 kB / 264.8 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.504e-05/0.007399, allocations: 4 kB / 264.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.775e-05/0.007487, allocations: 15.98 kB / 264.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.63e-05/0.007563, allocations: 27.8 kB / 264.8 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.623e-05/0.007599, allocations: 15.94 kB / 264.8 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.007759, allocations: 55.77 kB / 264.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.107e-05/0.00777, allocations: 0 / 264.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.007771, allocations: 0 / 264.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.007782, allocations: 3.938 kB / 264.9 MB, free: 10.14 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.0005073/0.00829, allocations: 357.8 kB / 265.2 MB, free: 9.766 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.008328, allocations: 11.98 kB / 265.3 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001118/0.009446, allocations: 20.92 kB / 265.3 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.009649, allocations: 138.1 kB / 265.4 MB, free: 9.574 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.009678, allocations: 8.375 kB / 265.4 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.009701, allocations: 12.12 kB / 265.4 MB, free: 9.555 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/0.009978, allocations: 157 kB / 265.6 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.00999, allocations: 0 / 265.6 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.01, allocations: 8 kB / 265.6 MB, free: 9.359 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.01001, allocations: 7.984 kB / 265.6 MB, free: 9.352 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000114/0.01013, allocations: 57.62 kB / 265.7 MB, free: 9.289 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006581/0.01079, allocations: 0.6092 MB / 266.3 MB, free: 8.645 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/0.01093, allocations: 90.86 kB / 266.4 MB, free: 8.531 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.261e-05/0.01097, allocations: 47.42 kB / 266.4 MB, free: 8.473 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.808e-06/0.01098, allocations: 0 / 266.4 MB, free: 8.473 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001521/0.01113, allocations: 118.7 kB / 266.5 MB, free: 8.332 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.01113, allocations: 4 kB / 266.5 MB, free: 8.328 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002173/0.01135, allocations: 158.7 kB / 266.7 MB, free: 8.148 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.0114, allocations: 88.98 kB / 266.8 MB, free: 8.043 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.01153, allocations: 171.2 kB / 266.9 MB, free: 7.859 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.01155, allocations: 29.7 kB / 267 MB, free: 7.824 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.01162, allocations: 112 kB / 267.1 MB, free: 7.711 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.699e-05/0.01165, allocations: 23.81 kB / 267.1 MB, free: 7.688 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.119e-05/0.01171, allocations: 41.69 kB / 267.1 MB, free: 7.641 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.01182, allocations: 326.8 kB / 267.4 MB, free: 7.312 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.34e-05/0.01187, allocations: 37.69 kB / 267.5 MB, free: 7.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.565e-05/0.01194, allocations: 96.5 kB / 267.6 MB, free: 7.145 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.01213, allocations: 198.8 kB / 267.8 MB, free: 6.906 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.01213, allocations: 0 / 267.8 MB, free: 6.906 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002097/0.01234, allocations: 169 kB / 267.9 MB, free: 6.723 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.252e-05/0.01239, allocations: 37.73 kB / 268 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.0124, allocations: 0 / 268 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.01242, allocations: 4 kB / 268 MB, free: 6.676 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.01254, allocations: 23.92 kB / 268 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.01255, allocations: 7.938 kB / 268 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.249e-05/0.01262, allocations: 19.88 kB / 268 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.01265, allocations: 8 kB / 268 MB, free: 6.617 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.0001901/0.01284, allocations: 158.2 kB / 268.2 MB, free: 6.445 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.937e-05/0.01286, allocations: 15.98 kB / 268.2 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.457e-05/0.0129, allocations: 13.16 kB / 268.2 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.0129, allocations: 0 / 268.2 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.01291, allocations: 3.938 kB / 268.2 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.01291, allocations: 4.297 kB / 268.2 MB, free: 6.406 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003963/0.01331, allocations: 373.4 kB / 268.6 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.01331, allocations: 0 / 268.6 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.449e-05/0.01336, allocations: 11.94 kB / 268.6 MB, free: 5.992 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.024e-05/0.01338, allocations: 15.84 kB / 268.6 MB, free: 5.977 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.01338, allocations: 4 kB / 268.6 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.0134, allocations: 11.92 kB / 268.6 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.0134, allocations: 0 / 268.6 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.0134, allocations: 0 / 268.6 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000219/0.01362, allocations: 290.2 kB / 268.9 MB, free: 5.648 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.43e-05/0.01364, allocations: 7.984 kB / 268.9 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.01375, allocations: 11.88 kB / 268.9 MB, free: 5.629 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.41e-05/0.0138, allocations: 11.98 kB / 269 MB, free: 5.617 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.01381, allocations: 0 / 269 MB, free: 5.617 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.844e-05/0.01387, allocations: 46.42 kB / 269 MB, free: 5.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.01387, allocations: 0 / 269 MB, free: 5.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003277/0.0142, allocations: 28 kB / 269 MB, free: 5.543 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.0001664/0.01436, allocations: 84.41 kB / 269.1 MB, free: 5.453 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002174/0.01458, allocations: 171.5 kB / 269.3 MB, free: 5.258 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.01459, allocations: 0 / 269.3 MB, free: 5.258 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.983e-05/0.01466, allocations: 110 kB / 269.4 MB, free: 5.129 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.0149, allocations: 80.22 kB / 269.5 MB, free: 5.039 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005872/0.01549, allocations: 278.6 kB / 269.7 MB, free: 4.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.003e-05/0.01554, allocations: 67.34 kB / 269.8 MB, free: 4.645 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.345e-05/0.01559, allocations: 17.39 kB / 269.8 MB, free: 4.629 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.148e-05/0.01566, allocations: 63.38 kB / 269.9 MB, free: 4.566 MB / 266.7 MB Notification: Performance of SimCode: time 1.313e-06/0.01566, allocations: 0 / 269.9 MB, free: 4.566 MB / 266.7 MB Notification: Performance of Templates: time 0.003076/0.01874, allocations: 1.101 MB / 271 MB, free: 3.48 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5841855322942138]