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 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 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.001108/0.001108, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001264/0.001264, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.1832/0.1832, allocations: 16.71 MB / 307.7 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002731/0.0002731, allocations: 8 kB / 372.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2496, allocations: 54.47 MB / 427.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.0008568/0.2505, allocations: 0.7763 MB / 427.9 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005809/0.2511, allocations: 390.1 kB / 428.3 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.619e-05/0.2512, allocations: 0 / 428.3 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.2513, allocations: 44.86 kB / 428.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002345/0.2516, allocations: 60.91 kB / 428.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001548/0.2518, allocations: 87.97 kB / 428.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000171/0.2519, allocations: 168.7 kB / 428.7 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.712e-05/0.252, allocations: 27.22 kB / 428.7 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.878e-05/0.2521, allocations: 95.2 kB / 428.8 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.328e-05/0.2522, allocations: 51.3 kB / 428.8 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.2522, allocations: 6.875 kB / 428.8 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.801e-05/0.2523, allocations: 36.5 kB / 428.9 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.069e-05/0.2523, allocations: 23.52 kB / 428.9 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.641e-05/0.2524, allocations: 42.45 kB / 428.9 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.2525, allocations: 75.72 kB / 429 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.2525, allocations: 0 / 429 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2525, allocations: 2.219 kB / 429 MB, free: 37.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.2525, allocations: 0 / 429 MB, free: 37.28 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.0003014/0.2528, allocations: 414.1 kB / 429.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.699e-05/0.2528, allocations: 10.97 kB / 429.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.901e-05/0.2529, allocations: 10.56 kB / 429.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.253, allocations: 199.7 kB / 429.6 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.253, allocations: 8.219 kB / 429.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.2531, allocations: 5.844 kB / 429.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001463/0.2532, allocations: 109.8 kB / 429.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.181e-06/0.2532, allocations: 0 / 429.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.2533, allocations: 3.953 kB / 429.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2533, allocations: 3.219 kB / 429.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.454e-05/0.2534, allocations: 57.91 kB / 429.8 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005154/0.2539, allocations: 0.7322 MB / 430.6 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001299/0.254, allocations: 52.03 kB / 430.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/0.254, allocations: 0 / 430.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.304e-05/0.2541, allocations: 36.44 kB / 430.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.2541, allocations: 0 / 430.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002273/0.2543, allocations: 199.3 kB / 430.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.138e-05/0.2543, allocations: 87.06 kB / 430.9 MB, free: 35.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.2544, allocations: 165.7 kB / 431.1 MB, free: 35.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.585e-06/0.2545, allocations: 25.7 kB / 431.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.139e-05/0.2545, allocations: 125.2 kB / 431.2 MB, free: 35.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.207e-05/0.2545, allocations: 17.86 kB / 431.2 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.2545, allocations: 7.438 kB / 431.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.964e-05/0.2546, allocations: 324.6 kB / 431.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.789e-05/0.2546, allocations: 21.64 kB / 431.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.199e-05/0.2547, allocations: 51.91 kB / 431.6 MB, free: 34.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.506e-05/0.2547, allocations: 60.2 kB / 431.7 MB, free: 34.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.2547, allocations: 0 / 431.7 MB, free: 34.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001888/0.2549, allocations: 147 kB / 431.8 MB, free: 34.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.255, allocations: 30.86 kB / 431.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.255, allocations: 2.594 kB / 431.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.255, allocations: 2.5 kB / 431.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.801e-05/0.255, allocations: 13.5 kB / 431.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.2551, allocations: 10.59 kB / 431.9 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.34e-05/0.2551, allocations: 9.719 kB / 431.9 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.2551, allocations: 9.047 kB / 431.9 MB, free: 34.78 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.active,T1.activation.NoTokens,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.221e-05/0.2552, allocations: 154.5 kB / 432.1 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.057e-05/0.2553, allocations: 11.62 kB / 432.1 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001948/0.2555, allocations: 161.2 kB / 432.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.2555, allocations: 0 / 432.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2555, allocations: 0 / 432.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.2555, allocations: 0 / 432.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.6e-05/0.2556, allocations: 192 kB / 432.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2556, allocations: 2.906 kB / 432.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.963e-05/0.2556, allocations: 5.625 kB / 432.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.2556, allocations: 3.938 kB / 432.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.2556, allocations: 3.5 kB / 432.4 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2556, allocations: 6.75 kB / 432.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2556, allocations: 0 / 432.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.2558, allocations: 128.3 kB / 432.6 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.759e-05/0.2558, allocations: 90.41 kB / 432.7 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.2558, allocations: 2.906 kB / 432.7 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.479e-05/0.2559, allocations: 3.938 kB / 432.7 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.594e-05/0.2559, allocations: 9.172 kB / 432.7 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.2559, allocations: 3.938 kB / 432.7 MB, free: 34.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.973e-05/0.256, allocations: 133.8 kB / 432.8 MB, free: 34.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.256, allocations: 0 / 432.8 MB, free: 34.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002229/0.2562, allocations: 32.31 kB / 432.8 MB, free: 34.04 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 (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.0001056/0.2563, allocations: 121.6 kB / 433 MB, free: 33.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.2564, allocations: 110.9 kB / 433.1 MB, free: 33.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2565, allocations: 0 / 433.1 MB, free: 33.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.61e-05/0.2565, allocations: 73.34 kB / 433.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001198/0.2566, allocations: 17.67 kB / 433.2 MB, free: 33.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002752/0.2569, allocations: 207.1 kB / 433.4 MB, free: 33.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.938e-05/0.257, allocations: 0.7084 MB / 434.1 MB, free: 32.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.367e-05/0.2571, allocations: 52.47 kB / 434.1 MB, free: 32.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.601e-05/0.2572, allocations: 19.3 kB / 434.1 MB, free: 32.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2572, allocations: 3.938 kB / 434.1 MB, free: 32.93 MB / 350.1 MB Notification: Performance of Templates: time 0.002671/0.2598, allocations: 0.9783 MB / 435.1 MB, free: 32.84 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