Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SingleTC.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.0009363/0.0009363, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.0009438/0.0009438, allocations: 169 kB / 23.02 MB, free: 1.547 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 0.9093/0.9093, allocations: 177.1 MB / 203.4 MB, free: 5.648 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.05/0.05, allocations: 12.66 MB / 272.6 MB, free: 0.4961 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.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 346.4 MB, free: 1.961 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.483e-05/1.63e-05, allocations: 8.703 kB / 346.5 MB, free: 1.953 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001867/0.001884, allocations: 1.035 MB / 347.5 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008585/0.002742, allocations: 371.1 kB / 347.9 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.002846, allocations: 7.938 kB / 347.9 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.003043, allocations: 51.7 kB / 347.9 MB, free: 500 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003062/0.003349, allocations: 55.53 kB / 348 MB, free: 444 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.003619, allocations: 123.8 kB / 348.1 MB, free: 320 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003065/0.003926, allocations: 307.3 kB / 348.4 MB, free: 12 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.928e-05/0.003975, allocations: 12.59 kB / 348.4 MB, free: 0 / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002789/0.004254, allocations: 203.7 kB / 348.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.258e-05/0.004347, allocations: 35.78 kB / 348.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/0.004368, allocations: 4 kB / 348.6 MB, free: 15.76 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.004518, allocations: 71.8 kB / 348.7 MB, free: 15.69 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.593e-05/0.004594, allocations: 19.84 kB / 348.7 MB, free: 15.67 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.97e-05/0.004633, allocations: 23.88 kB / 348.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002145/0.004848, allocations: 111.7 kB / 348.9 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.00485, allocations: 0 / 348.9 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.004851, allocations: 3.938 kB / 348.9 MB, free: 15.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.004855, allocations: 0 / 348.9 MB, free: 15.54 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004816/0.005337, allocations: 449.8 kB / 349.3 MB, free: 15.05 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.005375, allocations: 8.031 kB / 349.3 MB, free: 15.05 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.502e-05/0.00545, allocations: 24.84 kB / 349.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001715/0.005621, allocations: 144.9 kB / 349.5 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.005645, allocations: 4.375 kB / 349.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.005666, allocations: 12.38 kB / 349.5 MB, free: 14.84 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.005882, allocations: 158.8 kB / 349.6 MB, free: 14.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.005896, allocations: 0 / 349.6 MB, free: 14.65 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.00591, allocations: 4 kB / 349.6 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.005919, allocations: 0 / 349.6 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000102/0.006021, allocations: 61.61 kB / 349.7 MB, free: 14.58 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007422/0.006763, allocations: 0.8351 MB / 350.5 MB, free: 13.69 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.006949, allocations: 72.77 kB / 350.6 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.085e-05/0.007, allocations: 53.5 kB / 350.7 MB, free: 13.54 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.007018, allocations: 8 kB / 350.7 MB, free: 13.53 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.007045, allocations: 33.39 kB / 350.7 MB, free: 13.48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 1.553e-06/0.007046, allocations: 0 / 350.7 MB, free: 13.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002614/0.007307, allocations: 170.7 kB / 350.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.007353, allocations: 77.11 kB / 350.9 MB, free: 13.2 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.007519, allocations: 225.1 kB / 351.2 MB, free: 12.96 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.007535, allocations: 33.69 kB / 351.2 MB, free: 12.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.177e-05/0.007617, allocations: 154.7 kB / 351.4 MB, free: 12.77 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.007636, allocations: 23.78 kB / 351.4 MB, free: 12.75 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.732e-05/0.007693, allocations: 39.36 kB / 351.4 MB, free: 12.7 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.007832, allocations: 0.4962 MB / 351.9 MB, free: 12.19 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.819e-05/0.00789, allocations: 41.64 kB / 352 MB, free: 12.14 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.767e-05/0.007968, allocations: 96.16 kB / 352 MB, free: 12.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.008091, allocations: 133.8 kB / 352.2 MB, free: 11.86 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.008094, allocations: 0 / 352.2 MB, free: 11.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002224/0.008316, allocations: 168.9 kB / 352.3 MB, free: 11.68 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.211e-05/0.008348, allocations: 33.83 kB / 352.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.008355, allocations: 4 kB / 352.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.008373, allocations: 0 / 352.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.197e-05/0.008435, allocations: 15.98 kB / 352.4 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.008441, allocations: 0 / 352.4 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.464e-05/0.008485, allocations: 15.88 kB / 352.4 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.008504, allocations: 8 kB / 352.4 MB, free: 11.59 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (T1.firingCon,T1.fire_,T1.activation.NoTokens,T1.activation.active,T1.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001076/0.008612, allocations: 194.2 kB / 352.6 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.165e-05/0.008653, allocations: 19.91 kB / 352.6 MB, free: 11.37 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002058/0.008859, allocations: 142.2 kB / 352.8 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.008862, allocations: 4 kB / 352.8 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.008865, allocations: 0 / 352.8 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.00887, allocations: 3.938 kB / 352.8 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001231/0.008993, allocations: 140.6 kB / 352.9 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.008995, allocations: 0 / 352.9 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-05/0.00902, allocations: 4 kB / 352.9 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.009023, allocations: 3.938 kB / 352.9 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.009032, allocations: 4 kB / 352.9 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.009035, allocations: 4 kB / 352.9 MB, free: 11.01 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.009036, allocations: 0 / 352.9 MB, free: 11.01 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001797/0.009216, allocations: 168 kB / 353.1 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.608e-05/0.009232, allocations: 19.91 kB / 353.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.009249, allocations: 0 / 353.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.331e-05/0.009273, allocations: 4 kB / 353.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.526e-05/0.009298, allocations: 0 / 353.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.009305, allocations: 7.984 kB / 353.1 MB, free: 10.78 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.38e-05/0.009399, allocations: 159.9 kB / 353.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.009399, allocations: 0 / 353.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002632/0.009663, allocations: 31.88 kB / 353.3 MB, free: 10.59 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (T1.fire,T1.activation.active,T1.activation.NoTokens) * Number of discrete states: 2 (T1.activation.active,T1.activation.NoTokens) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001452/0.009808, allocations: 119.2 kB / 353.4 MB, free: 10.47 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001921/0.01, allocations: 174.3 kB / 353.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.01, allocations: 0 / 353.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.125e-05/0.01006, allocations: 104.8 kB / 353.7 MB, free: 10.14 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/0.01027, allocations: 15.09 kB / 353.7 MB, free: 10.13 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004723/0.01074, allocations: 268 kB / 354 MB, free: 9.836 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.652e-05/0.01079, allocations: 67.19 kB / 354 MB, free: 9.75 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.141e-05/0.01088, allocations: 44.64 kB / 354.1 MB, free: 9.707 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.947e-05/0.01092, allocations: 20.42 kB / 354.1 MB, free: 9.688 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01092, allocations: 0 / 354.1 MB, free: 9.688 MB / 282.7 MB Notification: Performance of Templates: time 0.003556/0.01448, allocations: 0.8974 MB / 355 MB, free: 8.809 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.ConTest.SingleTC.makefile [Timeout 660] (rm -f PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; mkfifo PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ConTest.SingleTC.pipe >> ../files/PNlib_PNlib.Examples.ConTest.SingleTC.sim & ./PNlib_PNlib.Examples.ConTest.SingleTC -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) [Timeout 240] diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.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.72520144097507]