Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.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.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 99 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.001189/0.001189, allocations: 177.3 kB / 15.94 MB, free: 228 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.271/1.271, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.1853/0.1853, allocations: 16.71 MB / 307.7 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003121/0.0003122, allocations: 12 kB / 372.7 MB, free: 3.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2663, allocations: 54.47 MB / 427.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001116/0.2674, allocations: 0.7822 MB / 427.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005083/0.268, allocations: 274.8 kB / 428.2 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.862e-05/0.268, allocations: 3.938 kB / 428.2 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.2682, allocations: 31.61 kB / 428.2 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.2684, allocations: 56.77 kB / 428.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.491e-05/0.2685, allocations: 50.34 kB / 428.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001586/0.2687, allocations: 139.8 kB / 428.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.274e-05/0.2687, allocations: 24.44 kB / 428.5 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.651e-05/0.2688, allocations: 78.45 kB / 428.6 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.245e-05/0.2689, allocations: 46.2 kB / 428.6 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.2689, allocations: 2.812 kB / 428.6 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.269, allocations: 11.42 kB / 428.6 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.101e-05/0.269, allocations: 19.83 kB / 428.7 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.254e-05/0.2691, allocations: 36.92 kB / 428.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.789e-05/0.2692, allocations: 55.58 kB / 428.8 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.2692, allocations: 1.719 kB / 428.8 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2692, allocations: 0 / 428.8 MB, free: 37.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.2692, allocations: 0 / 428.8 MB, free: 37.29 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.000388/0.2696, allocations: 426.6 kB / 429.2 MB, free: 36.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.934e-05/0.2696, allocations: 8.844 kB / 429.2 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.653e-05/0.2697, allocations: 13.56 kB / 429.2 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.2698, allocations: 196.6 kB / 429.4 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.2698, allocations: 10.22 kB / 429.4 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.2698, allocations: 5.75 kB / 429.4 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.2701, allocations: 149.9 kB / 429.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.2701, allocations: 0 / 429.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.2701, allocations: 3.953 kB / 429.5 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.2701, allocations: 2.969 kB / 429.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.2703, allocations: 74.53 kB / 429.6 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006081/0.2709, allocations: 0.9036 MB / 430.5 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001511/0.2711, allocations: 83.73 kB / 430.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.474e-06/0.2711, allocations: 0 / 430.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001635/0.2713, allocations: 97.34 kB / 430.7 MB, free: 35.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.262e-06/0.2713, allocations: 3.938 kB / 430.7 MB, free: 35.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002942/0.2716, allocations: 148.4 kB / 430.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.229e-05/0.2716, allocations: 115.6 kB / 431 MB, free: 35.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.2718, allocations: 172.1 kB / 431.1 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.2718, allocations: 28.7 kB / 431.2 MB, free: 35.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.12e-05/0.2718, allocations: 114.6 kB / 431.3 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.804e-05/0.2719, allocations: 28.36 kB / 431.3 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.2719, allocations: 6.406 kB / 431.3 MB, free: 35.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.183e-05/0.2719, allocations: 327.8 kB / 431.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.486e-05/0.272, allocations: 27.22 kB / 431.7 MB, free: 34.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.998e-05/0.2721, allocations: 85.2 kB / 431.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.447e-05/0.2722, allocations: 61.33 kB / 431.8 MB, free: 34.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2722, allocations: 3.938 kB / 431.8 MB, free: 34.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002189/0.2724, allocations: 185.9 kB / 432 MB, free: 34.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.2724, allocations: 31.67 kB / 432 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.2724, allocations: 6.844 kB / 432 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.2725, allocations: 2.969 kB / 432 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.661e-05/0.2725, allocations: 18.98 kB / 432 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.2725, allocations: 3 kB / 432 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.181e-05/0.2726, allocations: 13.28 kB / 432.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.2726, allocations: 17.47 kB / 432.1 MB, free: 34.55 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = true protected = true ) "next putative firing time" type: Real T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,T1.active,$PRE.T1.firingTime,T1.firingTime,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.active,$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,T1.firingCon,$whenCondition1,T1.enabledByInPlaces,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 0.0001158/0.2728, allocations: 164.8 kB / 432.2 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.635e-05/0.2728, allocations: 13.73 kB / 432.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.872e-05/0.2728, allocations: 20.86 kB / 432.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.2728, allocations: 3.938 kB / 432.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2728, allocations: 0 / 432.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.2728, allocations: 3.156 kB / 432.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003525/0.2732, allocations: 0.4939 MB / 432.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2732, allocations: 0 / 432.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.664e-05/0.2732, allocations: 6 kB / 432.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2732, allocations: 0 / 432.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.779e-06/0.2733, allocations: 6.094 kB / 432.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.2733, allocations: 4 kB / 432.8 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.2733, allocations: 7.219 kB / 432.8 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001876/0.2735, allocations: 320.8 kB / 433.1 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.732e-05/0.2735, allocations: 91.8 kB / 433.2 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.2735, allocations: 2.781 kB / 433.2 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.832e-05/0.2736, allocations: 13.27 kB / 433.2 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.2737, allocations: 20.28 kB / 433.2 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.2737, allocations: 3.406 kB / 433.2 MB, free: 33.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.991e-05/0.2738, allocations: 128 kB / 433.4 MB, free: 33.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2738, allocations: 0 / 433.4 MB, free: 33.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000283/0.274, allocations: 20.88 kB / 433.4 MB, free: 33.51 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,T1.fireTime,T1.ani,T1.active,$whenCondition2,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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.0001043/0.2742, allocations: 98.41 kB / 433.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002175/0.2744, allocations: 147.3 kB / 433.6 MB, free: 33.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.2744, allocations: 0 / 433.6 MB, free: 33.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.757e-05/0.2745, allocations: 88.8 kB / 433.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001998/0.2747, allocations: 10.62 kB / 433.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003293/0.275, allocations: 239.5 kB / 434 MB, free: 33.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.2752, allocations: 0.71 MB / 434.7 MB, free: 32.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.181e-05/0.2752, allocations: 22.12 kB / 434.7 MB, free: 32.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.877e-05/0.2753, allocations: 13.25 kB / 434.7 MB, free: 32.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2753, allocations: 0 / 434.7 MB, free: 32.41 MB / 350.1 MB Notification: Performance of Templates: time 0.002678/0.278, allocations: 0.8953 MB / 435.6 MB, free: 32.32 MB / 350.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.SingleTD.makefile (rm -f PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SingleTD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SingleTD.sim & ./PNlib_PNlib.Examples.DisTest.SingleTD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","../files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches