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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007991/0.0007991, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004811/0.004811, allocations: 170.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.147/1.147, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1537/0.1537, allocations: 16.73 MB / 308.2 MB, free: 15.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002587/0.0002588, allocations: 12 kB / 373.4 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2054, allocations: 54.47 MB / 427.9 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.0007901/0.2062, allocations: 0.805 MB / 428.7 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005966/0.2068, allocations: 415 kB / 429.1 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.384e-05/0.2069, allocations: 0 / 429.1 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.207, allocations: 43.14 kB / 429.1 MB, free: 38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001639/0.2072, allocations: 33.23 kB / 429.2 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001523/0.2073, allocations: 110.7 kB / 429.3 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001669/0.2075, allocations: 269.4 kB / 429.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.873e-05/0.2076, allocations: 29.22 kB / 429.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.829e-05/0.2077, allocations: 121.2 kB / 429.7 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.402e-05/0.2077, allocations: 51.16 kB / 429.7 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.2078, allocations: 0 / 429.7 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.922e-05/0.2078, allocations: 54.41 kB / 429.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.142e-05/0.2079, allocations: 26.86 kB / 429.8 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.4e-05/0.2079, allocations: 64.14 kB / 429.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001153/0.2081, allocations: 107.9 kB / 430 MB, free: 37.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2081, allocations: 0 / 430 MB, free: 37.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2081, allocations: 2.156 kB / 430 MB, free: 37.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.046e-06/0.2081, allocations: 0 / 430 MB, free: 37.82 MB / 350.1 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.0002829/0.2084, allocations: 414.3 kB / 430.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.676e-05/0.2084, allocations: 10.19 kB / 430.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.286e-05/0.2085, allocations: 11.09 kB / 430.4 MB, free: 37.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.2086, allocations: 204.1 kB / 430.6 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.2086, allocations: 6.406 kB / 430.6 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.2086, allocations: 10.81 kB / 430.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.2087, allocations: 106.1 kB / 430.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.2088, allocations: 6.312 kB / 430.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.2088, allocations: 3.5 kB / 430.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.2088, allocations: 2.75 kB / 430.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.481e-05/0.2089, allocations: 49.78 kB / 430.8 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004378/0.2093, allocations: 0.7311 MB / 431.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.2094, allocations: 51.33 kB / 431.6 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.74e-05/0.2095, allocations: 23.52 kB / 431.6 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.2095, allocations: 0 / 431.6 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.015e-05/0.2095, allocations: 30.56 kB / 431.6 MB, free: 36.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 8.31e-07/0.2095, allocations: 4 kB / 431.6 MB, free: 36.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001841/0.2097, allocations: 127.8 kB / 431.8 MB, free: 36.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.777e-05/0.2097, allocations: 77.11 kB / 431.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.518e-05/0.2098, allocations: 167.4 kB / 432 MB, free: 36.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.324e-06/0.2098, allocations: 32.11 kB / 432 MB, free: 36.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.61e-05/0.2099, allocations: 114.2 kB / 432.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.818e-06/0.2099, allocations: 18.25 kB / 432.2 MB, free: 35.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.16e-05/0.2099, allocations: 19.48 kB / 432.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.442e-05/0.2099, allocations: 323.8 kB / 432.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.313e-05/0.21, allocations: 22.7 kB / 432.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.643e-05/0.21, allocations: 54.36 kB / 432.6 MB, free: 35.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.63e-05/0.2101, allocations: 134.1 kB / 432.7 MB, free: 35.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2101, allocations: 0 / 432.7 MB, free: 35.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001558/0.2103, allocations: 145.5 kB / 432.8 MB, free: 35.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.2103, allocations: 36.53 kB / 432.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.2103, allocations: 3.469 kB / 432.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.2103, allocations: 3.938 kB / 432.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.367e-05/0.2104, allocations: 12.53 kB / 432.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.2104, allocations: 7.125 kB / 432.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.632e-05/0.2104, allocations: 17.03 kB / 432.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.2104, allocations: 2.875 kB / 432.9 MB, free: 35.31 MB / 350.1 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 5.869e-05/0.2105, allocations: 150.4 kB / 433.1 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.694e-05/0.2105, allocations: 13.08 kB / 433.1 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.2107, allocations: 122.9 kB / 433.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2107, allocations: 3.047 kB / 433.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2107, allocations: 3.984 kB / 433.2 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.2107, allocations: 0 / 433.2 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.485e-05/0.2108, allocations: 199.3 kB / 433.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2108, allocations: 4 kB / 433.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.592e-05/0.2108, allocations: 2.812 kB / 433.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.2108, allocations: 0 / 433.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.812e-06/0.2108, allocations: 6.75 kB / 433.4 MB, free: 34.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2108, allocations: 80 / 433.4 MB, free: 34.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2108, allocations: 3.984 kB / 433.4 MB, free: 34.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.2109, allocations: 127.4 kB / 433.5 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.045e-05/0.211, allocations: 87.8 kB / 433.6 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.7e-05/0.211, allocations: 14.31 kB / 433.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.824e-05/0.211, allocations: 0 / 433.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.128e-05/0.211, allocations: 6.359 kB / 433.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.211, allocations: 0 / 433.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.669e-05/0.2111, allocations: 133.4 kB / 433.8 MB, free: 34.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2111, allocations: 0 / 433.8 MB, free: 34.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001975/0.2113, allocations: 26.44 kB / 433.8 MB, free: 34.58 MB / 350.1 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 9.366e-05/0.2114, allocations: 121.9 kB / 433.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000115/0.2115, allocations: 113.9 kB / 434 MB, free: 34.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2115, allocations: 0 / 434 MB, free: 34.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.288e-05/0.2116, allocations: 74.36 kB / 434.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001489/0.2117, allocations: 9.188 kB / 434.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002994/0.212, allocations: 255 kB / 434.4 MB, free: 34.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.822e-05/0.2121, allocations: 0.6997 MB / 435.1 MB, free: 33.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.991e-05/0.2122, allocations: 42.45 kB / 435.1 MB, free: 33.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.645e-05/0.2123, allocations: 23.33 kB / 435.1 MB, free: 33.46 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2123, allocations: 0 / 435.1 MB, free: 33.46 MB / 350.1 MB Notification: Performance of Templates: time 0.002423/0.2147, allocations: 0.9302 MB / 436.1 MB, free: 33.38 MB / 350.1 MB make -j1 -f PNlib_PNlib.Examples.ConTest.SingleTC.makefile (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=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","../files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches