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.0009418/0.0009418, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.0009464/0.0009464, allocations: 181 kB / 23.36 MB, free: 1.133 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.009/1.009, allocations: 177.1 MB / 203.8 MB, free: 5.465 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.05133/0.05133, allocations: 12.66 MB / 272.9 MB, free: 376 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.683e-06/1.683e-06, allocations: 1.062 kB / 293.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.091e-05/1.259e-05, allocations: 3.078 kB / 293.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001612/0.001624, allocations: 1.062 MB / 294.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005031/0.002127, allocations: 273.7 kB / 295 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.542e-05/0.002203, allocations: 5.406 kB / 295 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001391/0.002342, allocations: 43.02 kB / 295.1 MB, free: 11.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001967/0.002539, allocations: 46.97 kB / 295.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001444/0.002683, allocations: 76.8 kB / 295.2 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002163/0.002899, allocations: 242.8 kB / 295.4 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.508e-05/0.002944, allocations: 13.86 kB / 295.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001652/0.003109, allocations: 159 kB / 295.6 MB, free: 11.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.101e-05/0.00316, allocations: 31.83 kB / 295.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.003177, allocations: 4.375 kB / 295.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.304e-05/0.00324, allocations: 19.25 kB / 295.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.573e-05/0.003296, allocations: 29.97 kB / 295.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.881e-05/0.003325, allocations: 17.45 kB / 295.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.003436, allocations: 68.58 kB / 295.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.003438, allocations: 0.6562 kB / 295.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.003438, allocations: 1.219 kB / 295.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.003442, allocations: 0 / 295.8 MB, free: 11.32 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.0002982/0.00374, allocations: 343.8 kB / 296.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.644e-05/0.003766, allocations: 9 kB / 296.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.58e-05/0.003802, allocations: 13.56 kB / 296.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.00391, allocations: 144 kB / 296.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.003925, allocations: 11.91 kB / 296.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.003937, allocations: 17.92 kB / 296.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.004081, allocations: 155.1 kB / 296.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.004089, allocations: 5.188 kB / 296.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.004097, allocations: 1.25 kB / 296.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.004104, allocations: 2.922 kB / 296.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.382e-05/0.004167, allocations: 60.3 kB / 296.5 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000327/0.004494, allocations: 0.6198 MB / 297.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.491e-05/0.004569, allocations: 89.45 kB / 297.2 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.148e-05/0.004591, allocations: 52.19 kB / 297.3 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.805e-06/0.004599, allocations: 2 kB / 297.3 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.149e-05/0.00467, allocations: 107.5 kB / 297.4 MB, free: 9.828 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.062e-06/0.004671, allocations: 0 / 297.4 MB, free: 9.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001242/0.004795, allocations: 158.3 kB / 297.5 MB, free: 9.695 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.416e-05/0.00482, allocations: 114.9 kB / 297.7 MB, free: 9.562 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.292e-05/0.004892, allocations: 166.6 kB / 297.8 MB, free: 9.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.795e-06/0.0049, allocations: 32.58 kB / 297.8 MB, free: 9.395 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.266e-05/0.004933, allocations: 110.5 kB / 298 MB, free: 9.293 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.286e-05/0.004946, allocations: 25.92 kB / 298 MB, free: 9.273 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.933e-05/0.004985, allocations: 40.31 kB / 298 MB, free: 9.246 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.879e-05/0.005014, allocations: 328.1 kB / 298.3 MB, free: 8.926 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.062e-05/0.005035, allocations: 36.88 kB / 298.4 MB, free: 8.895 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.335e-05/0.005068, allocations: 96.78 kB / 298.5 MB, free: 8.793 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.403e-05/0.005162, allocations: 195.5 kB / 298.7 MB, free: 8.613 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.005165, allocations: 1.828 kB / 298.7 MB, free: 8.613 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001119/0.005276, allocations: 166.8 kB / 298.8 MB, free: 8.496 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.005294, allocations: 32.77 kB / 298.9 MB, free: 8.465 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.005299, allocations: 2.125 kB / 298.9 MB, free: 8.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.005311, allocations: 2.125 kB / 298.9 MB, free: 8.465 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.425e-05/0.005376, allocations: 23.22 kB / 298.9 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.00538, allocations: 7.281 kB / 298.9 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.939e-05/0.00542, allocations: 15.44 kB / 298.9 MB, free: 8.449 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.00543, allocations: 5.016 kB / 298.9 MB, free: 8.449 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 8.244e-05/0.005513, allocations: 171.8 kB / 299.1 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.005528, allocations: 10.98 kB / 299.1 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.103e-05/0.005549, allocations: 18.7 kB / 299.1 MB, free: 8.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.005552, allocations: 1.406 kB / 299.1 MB, free: 8.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.005555, allocations: 5.656 kB / 299.1 MB, free: 8.266 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.005558, allocations: 0.75 kB / 299.1 MB, free: 8.266 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/0.005734, allocations: 375 kB / 299.5 MB, free: 7.922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.005735, allocations: 0 / 299.5 MB, free: 7.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.7e-05/0.005752, allocations: 5.969 kB / 299.5 MB, free: 7.922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.005754, allocations: 5.125 kB / 299.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.00576, allocations: 1.672 kB / 299.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.005763, allocations: 5.188 kB / 299.5 MB, free: 7.914 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.005764, allocations: 1.562 kB / 299.5 MB, free: 7.914 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.049e-05/0.005845, allocations: 297.9 kB / 299.8 MB, free: 7.637 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.246e-06/0.005853, allocations: 7.359 kB / 299.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.005866, allocations: 3.266 kB / 299.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.759e-05/0.005923, allocations: 17 kB / 299.8 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.33e-05/0.005957, allocations: 9.484 kB / 299.8 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.005962, allocations: 2.953 kB / 299.8 MB, free: 7.621 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.024e-05/0.005992, allocations: 40.8 kB / 299.9 MB, free: 7.605 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005993, allocations: 4 kB / 299.9 MB, free: 7.602 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001768/0.006169, allocations: 30.03 kB / 299.9 MB, free: 7.59 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 7.209e-05/0.006241, allocations: 82.56 kB / 300 MB, free: 7.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001197/0.006361, allocations: 176.4 kB / 300.2 MB, free: 7.371 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.279e-06/0.006365, allocations: 6.562 kB / 300.2 MB, free: 7.367 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.243e-05/0.006408, allocations: 106.2 kB / 300.3 MB, free: 7.262 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001726/0.00658, allocations: 13.06 kB / 300.3 MB, free: 7.258 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003009/0.006881, allocations: 270.3 kB / 300.5 MB, free: 7.035 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.599e-05/0.006917, allocations: 70.08 kB / 300.6 MB, free: 6.961 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.73e-05/0.006965, allocations: 20.28 kB / 300.6 MB, free: 6.953 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.841e-05/0.007023, allocations: 65.86 kB / 300.7 MB, free: 6.91 MB / 266.7 MB Notification: Performance of SimCode: time 7.62e-07/0.007024, allocations: 0.5 kB / 300.7 MB, free: 6.91 MB / 266.7 MB Notification: Performance of Templates: time 0.002807/0.009831, allocations: 1.137 MB / 301.8 MB, free: 6.762 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 -s gbode -gbm=radauIIA3 -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.6496279616840184]