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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002252/0.002252, allocations: 177.3 kB / 7.447 MB, free: 2.312 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.973/0.973, allocations: 205.2 MB / 213.1 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008929/0.0008929, allocations: 96.31 kB / 261.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06363/0.06363, allocations: 16.74 MB / 325.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.278e-06/4.298e-06, allocations: 0 / 383.4 MB, free: 71.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06277/0.06279, allocations: 51.69 MB / 435.1 MB, free: 19.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1872/0.25, allocations: 76.41 MB / 0.4995 GB, free: 9.844 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001523/0.2502, allocations: 66.56 kB / 0.4996 GB, free: 9.844 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.004625/0.2548, allocations: 1.958 MB / 0.5015 GB, free: 9.699 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.2548, allocations: 6.594 kB / 0.5015 GB, free: 9.695 MB / 330.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.0002227/0.2551, allocations: 398 kB / 0.5019 GB, free: 9.297 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.794e-05/0.2551, allocations: 8.656 kB / 0.5019 GB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.925e-05/0.2552, allocations: 14.53 kB / 0.5019 GB, free: 9.289 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.2553, allocations: 200.1 kB / 0.5021 GB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.2553, allocations: 2.5 kB / 0.5021 GB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.368e-05/0.2553, allocations: 3.656 kB / 0.5021 GB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.06e-05/0.2554, allocations: 38.16 kB / 0.5022 GB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.2556, allocations: 100.8 kB / 0.5023 GB, free: 9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.2556, allocations: 5.281 kB / 0.5023 GB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.2556, allocations: 1.344 kB / 0.5023 GB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2556, allocations: 1.375 kB / 0.5023 GB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004482/0.2561, allocations: 0.7125 MB / 0.503 GB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001193/0.2562, allocations: 47.16 kB / 0.503 GB, free: 8.301 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.019e-05/0.2562, allocations: 19.83 kB / 0.503 GB, free: 8.293 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.2562, allocations: 1.438 kB / 0.503 GB, free: 8.293 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.135e-05/0.2563, allocations: 41.97 kB / 0.5031 GB, free: 8.246 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.2563, allocations: 0 / 0.5031 GB, free: 8.246 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.000146/0.2564, allocations: 66.22 kB / 0.5031 GB, free: 8.207 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.657e-05/0.2564, allocations: 79.83 kB / 0.5032 GB, free: 8.113 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.425e-05/0.2565, allocations: 145.8 kB / 0.5033 GB, free: 8.012 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.163e-06/0.2565, allocations: 30.73 kB / 0.5034 GB, free: 7.977 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.699e-05/0.2566, allocations: 102.1 kB / 0.5035 GB, free: 7.887 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.141e-05/0.2566, allocations: 20.95 kB / 0.5035 GB, free: 7.875 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-06/0.2566, allocations: 0 / 0.5035 GB, free: 7.875 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.778e-05/0.2566, allocations: 329.3 kB / 0.5038 GB, free: 7.555 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.139e-05/0.2567, allocations: 17.95 kB / 0.5038 GB, free: 7.555 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.711e-05/0.2567, allocations: 49.75 kB / 0.5039 GB, free: 7.512 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.968e-05/0.2568, allocations: 24.17 kB / 0.5039 GB, free: 7.512 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2568, allocations: 5.344 kB / 0.5039 GB, free: 7.508 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001892/0.257, allocations: 102.2 kB / 0.504 GB, free: 7.469 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.136e-06/0.257, allocations: 8.906 kB / 0.504 GB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.257, allocations: 1.188 kB / 0.504 GB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.488e-06/0.2571, allocations: 1.188 kB / 0.504 GB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.012e-05/0.2571, allocations: 15.03 kB / 0.504 GB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.2571, allocations: 3.844 kB / 0.504 GB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.064e-05/0.2572, allocations: 6.5 kB / 0.504 GB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.2572, allocations: 8.969 kB / 0.504 GB, free: 7.457 MB / 330.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.active,T1.activation.NoTokens,T1.fire_) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.979e-05/0.2572, allocations: 139.4 kB / 0.5042 GB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.371e-05/0.2573, allocations: 19.7 kB / 0.5042 GB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001822/0.2575, allocations: 123.4 kB / 0.5043 GB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2575, allocations: 0 / 0.5043 GB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2575, allocations: 2.594 kB / 0.5043 GB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2575, allocations: 3.906 kB / 0.5043 GB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.76e-05/0.2576, allocations: 166 kB / 0.5045 GB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2576, allocations: 0 / 0.5045 GB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.997e-05/0.2576, allocations: 12.12 kB / 0.5045 GB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.2576, allocations: 1.375 kB / 0.5045 GB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.2576, allocations: 0 / 0.5045 GB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.2577, allocations: 1.375 kB / 0.5045 GB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2577, allocations: 64 / 0.5045 GB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.064e-05/0.2578, allocations: 93.3 kB / 0.5046 GB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.585e-05/0.2578, allocations: 95.55 kB / 0.5047 GB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.2578, allocations: 4.469 kB / 0.5047 GB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.573e-05/0.2578, allocations: 5.062 kB / 0.5047 GB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.013e-05/0.2579, allocations: 3.703 kB / 0.5047 GB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.2579, allocations: 2.594 kB / 0.5047 GB, free: 6.906 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.625e-05/0.2579, allocations: 115.7 kB / 0.5048 GB, free: 6.832 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002074/0.2582, allocations: 27.61 kB / 0.5048 GB, free: 6.828 MB / 330.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001078/0.2583, allocations: 127.3 kB / 0.5049 GB, free: 6.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.2584, allocations: 70.05 kB / 0.505 GB, free: 6.699 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.2584, allocations: 0 / 0.505 GB, free: 6.699 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.106e-05/0.2584, allocations: 51.14 kB / 0.5051 GB, free: 6.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001069/0.2585, allocations: 10.59 kB / 0.5051 GB, free: 6.656 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009723/0.2595, allocations: 375.2 kB / 0.5054 GB, free: 6.559 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.2597, allocations: 0.7552 MB / 0.5062 GB, free: 5.844 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2597, allocations: 0 / 0.5062 GB, free: 5.844 MB / 330.7 MB Notification: Performance of Templates: time 0.002849/0.2625, allocations: 1.07 MB / 0.5072 GB, free: 5.73 MB / 330.7 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