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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001498/0.001498, allocations: 175.8 kB / 7.647 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.3 MB / 213.4 MB, free: 1.746 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001236/0.001236, allocations: 78.7 kB / 261.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06442/0.06442, allocations: 16.73 MB / 326.1 MB, free: 11.07 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.381e-05/1.385e-05, allocations: 4 kB / 384 MB, free: 1.062 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.2077, allocations: 51.7 MB / 435.7 MB, free: 12.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.098/0.3057, allocations: 76.49 MB / 0.5002 GB, free: 15.99 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001828/0.306, allocations: 63.92 kB / 0.5002 GB, free: 15.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005099/0.3111, allocations: 2.245 MB / 0.5024 GB, free: 13.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.3111, allocations: 0 / 0.5024 GB, free: 13.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.3111, allocations: 7.938 kB / 0.5024 GB, free: 13.67 MB / 362.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.0003275/0.3114, allocations: 400.3 kB / 0.5028 GB, free: 13.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.3115, allocations: 8.031 kB / 0.5028 GB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.812e-05/0.3115, allocations: 15.84 kB / 0.5028 GB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002085/0.3118, allocations: 202.6 kB / 0.503 GB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.3118, allocations: 4 kB / 0.503 GB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.3118, allocations: 4 kB / 0.503 GB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.848e-05/0.3119, allocations: 35.98 kB / 0.5031 GB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001383/0.312, allocations: 105.8 kB / 0.5032 GB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.3121, allocations: 4 kB / 0.5032 GB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.3121, allocations: 0 / 0.5032 GB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.3121, allocations: 0 / 0.5032 GB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006187/0.3127, allocations: 0.7124 MB / 0.5039 GB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.3129, allocations: 46.64 kB / 0.5039 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.227e-05/0.3129, allocations: 20.97 kB / 0.5039 GB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.3129, allocations: 4 kB / 0.5039 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.3129, allocations: 38.44 kB / 0.504 GB, free: 11.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.313, allocations: 0 / 0.504 GB, free: 11.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002079/0.3132, allocations: 77.45 kB / 0.504 GB, free: 11.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.3132, allocations: 81.11 kB / 0.5041 GB, free: 11.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.3133, allocations: 142.5 kB / 0.5042 GB, free: 11.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.3134, allocations: 25.7 kB / 0.5043 GB, free: 11.53 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.835e-05/0.3134, allocations: 116 kB / 0.5044 GB, free: 11.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.3135, allocations: 23.73 kB / 0.5044 GB, free: 11.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-06/0.3135, allocations: 4 kB / 0.5044 GB, free: 11.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3136, allocations: 318.8 kB / 0.5047 GB, free: 11.06 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.25e-05/0.3136, allocations: 16 kB / 0.5047 GB, free: 11.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.011e-05/0.3137, allocations: 52.28 kB / 0.5048 GB, free: 10.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.566e-05/0.3138, allocations: 27.92 kB / 0.5048 GB, free: 10.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3138, allocations: 0 / 0.5048 GB, free: 10.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002023/0.314, allocations: 105.5 kB / 0.5049 GB, free: 10.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.314, allocations: 29.7 kB / 0.5049 GB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.314, allocations: 4 kB / 0.5049 GB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.3141, allocations: 0 / 0.5049 GB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.286e-05/0.3141, allocations: 15.98 kB / 0.505 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.3141, allocations: 7.891 kB / 0.505 GB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.831e-05/0.3142, allocations: 12.03 kB / 0.505 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.3142, allocations: 4 kB / 0.505 GB, free: 10.77 MB / 362.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 8.969e-05/0.3143, allocations: 134.8 kB / 0.5051 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.919e-05/0.3144, allocations: 15.84 kB / 0.5051 GB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002081/0.3146, allocations: 124.2 kB / 0.5052 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3146, allocations: 0 / 0.5052 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3146, allocations: 3.984 kB / 0.5052 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3146, allocations: 3.953 kB / 0.5052 GB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.3147, allocations: 166.1 kB / 0.5054 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3147, allocations: 0 / 0.5054 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.995e-05/0.3148, allocations: 4 kB / 0.5054 GB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3148, allocations: 0 / 0.5054 GB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-06/0.3148, allocations: 4 kB / 0.5054 GB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.3148, allocations: 0 / 0.5054 GB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.645e-05/0.3148, allocations: 4 kB / 0.5054 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001254/0.3149, allocations: 104.9 kB / 0.5055 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.291e-05/0.315, allocations: 88.92 kB / 0.5056 GB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.315, allocations: 0 / 0.5056 GB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.386e-05/0.3151, allocations: 3.938 kB / 0.5056 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.874e-05/0.3151, allocations: 7.984 kB / 0.5056 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.932e-06/0.3151, allocations: 4 kB / 0.5056 GB, free: 10.01 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.744e-05/0.3152, allocations: 119.3 kB / 0.5057 GB, free: 9.895 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3152, allocations: 0 / 0.5057 GB, free: 9.895 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002511/0.3155, allocations: 31.98 kB / 0.5058 GB, free: 9.863 MB / 362.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.0001398/0.3156, allocations: 115.3 kB / 0.5059 GB, free: 9.742 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.3157, allocations: 107.3 kB / 0.506 GB, free: 9.625 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3158, allocations: 0 / 0.506 GB, free: 9.625 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.185e-05/0.3158, allocations: 71.34 kB / 0.506 GB, free: 9.543 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.3159, allocations: 11.95 kB / 0.5061 GB, free: 9.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.317, allocations: 368.2 kB / 0.5064 GB, free: 9.152 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.3173, allocations: 0.7119 MB / 0.5071 GB, free: 8.414 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.3174, allocations: 48.31 kB / 0.5071 GB, free: 8.367 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.37e-05/0.3175, allocations: 27.34 kB / 0.5072 GB, free: 8.34 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3175, allocations: 0 / 0.5072 GB, free: 8.34 MB / 362.7 MB Notification: Performance of Templates: time 0.002938/0.3204, allocations: 0.9528 MB / 0.5081 GB, free: 7.391 MB / 362.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