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.0008847/0.0008845, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007651/0.007651, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.374/1.374, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.2232/0.2232, allocations: 16.72 MB / 308.2 MB, free: 15.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003181, allocations: 12 kB / 373.4 MB, free: 3.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3046, allocations: 54.47 MB / 427.9 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001238/0.3059, allocations: 0.8007 MB / 428.7 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005965/0.3065, allocations: 285.4 kB / 429 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.73e-05/0.3066, allocations: 0 / 429 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.3068, allocations: 35.22 kB / 429 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001862/0.307, allocations: 24.89 kB / 429 MB, free: 38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001413/0.3071, allocations: 70.88 kB / 429.1 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002099/0.3073, allocations: 213.8 kB / 429.3 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.264e-05/0.3074, allocations: 21.89 kB / 429.3 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.3075, allocations: 101.3 kB / 429.4 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.641e-05/0.3076, allocations: 47.02 kB / 429.5 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.3076, allocations: 2.812 kB / 429.5 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.666e-05/0.3077, allocations: 11.59 kB / 429.5 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.597e-05/0.3078, allocations: 24.83 kB / 429.5 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.931e-05/0.3078, allocations: 65.89 kB / 429.6 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.308, allocations: 70.77 kB / 429.6 MB, free: 37.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.308, allocations: 3.234 kB / 429.6 MB, free: 37.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.308, allocations: 0 / 429.6 MB, free: 37.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.308, allocations: 1.344 kB / 429.6 MB, free: 37.84 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.0004837/0.3085, allocations: 421 kB / 430.1 MB, free: 37.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.3085, allocations: 11.84 kB / 430.1 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.357e-05/0.3086, allocations: 16.97 kB / 430.1 MB, free: 37.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.3087, allocations: 201.4 kB / 430.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.3088, allocations: 11.34 kB / 430.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.666e-05/0.3088, allocations: 12.59 kB / 430.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002424/0.309, allocations: 135 kB / 430.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.309, allocations: 0.6562 kB / 430.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.3091, allocations: 6.094 kB / 430.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.3091, allocations: 4.188 kB / 430.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.3093, allocations: 72.17 kB / 430.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000659/0.3099, allocations: 0.8992 MB / 431.4 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001607/0.3101, allocations: 82.48 kB / 431.5 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.859e-05/0.3102, allocations: 33.11 kB / 431.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.3102, allocations: 7.938 kB / 431.5 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001686/0.3104, allocations: 100.9 kB / 431.6 MB, free: 36.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.312e-06/0.3104, allocations: 0 / 431.6 MB, free: 36.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003197/0.3107, allocations: 156.5 kB / 431.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.3108, allocations: 114.2 kB / 431.9 MB, free: 35.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.3109, allocations: 171 kB / 432.1 MB, free: 35.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.3109, allocations: 30.77 kB / 432.1 MB, free: 35.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.009e-05/0.311, allocations: 115.2 kB / 432.2 MB, free: 35.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.311, allocations: 25.55 kB / 432.2 MB, free: 35.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.891e-05/0.311, allocations: 26.61 kB / 432.3 MB, free: 35.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.392e-05/0.3111, allocations: 324 kB / 432.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.703e-05/0.3112, allocations: 30.7 kB / 432.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.557e-05/0.3112, allocations: 80.56 kB / 432.7 MB, free: 35.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.3115, allocations: 283 kB / 433 MB, free: 35.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3115, allocations: 0 / 433 MB, free: 35.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002365/0.3118, allocations: 195.7 kB / 433.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.3118, allocations: 31.36 kB / 433.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.3118, allocations: 2.75 kB / 433.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.3118, allocations: 2.75 kB / 433.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.041e-05/0.3119, allocations: 14.64 kB / 433.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.3119, allocations: 3.094 kB / 433.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.358e-05/0.312, allocations: 24.06 kB / 433.2 MB, free: 34.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.312, allocations: 6.156 kB / 433.2 MB, free: 34.91 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 ($PRE.T1.firingTime,T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,$whenCondition2,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,T1.firingCon,T1.enabledByInPlaces,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001343/0.3122, allocations: 161.8 kB / 433.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.3122, allocations: 17.34 kB / 433.4 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.897e-05/0.3122, allocations: 17.97 kB / 433.4 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.3122, allocations: 2.844 kB / 433.4 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3122, allocations: 0 / 433.4 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3123, allocations: 2.938 kB / 433.4 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003619/0.3126, allocations: 499.4 kB / 433.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3126, allocations: 3.938 kB / 433.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.696e-05/0.3127, allocations: 7.719 kB / 433.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3127, allocations: 3.328 kB / 433.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.3127, allocations: 0 / 433.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3127, allocations: 0 / 433.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3127, allocations: 3.469 kB / 433.9 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001969/0.3129, allocations: 320.9 kB / 434.2 MB, free: 34.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.72e-05/0.3129, allocations: 95.33 kB / 434.3 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.313, allocations: 6.266 kB / 434.3 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.508e-05/0.3131, allocations: 3 kB / 434.4 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.3131, allocations: 15.88 kB / 434.4 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.3131, allocations: 11.06 kB / 434.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.313e-05/0.3132, allocations: 124.7 kB / 434.5 MB, free: 33.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3132, allocations: 0 / 434.5 MB, free: 33.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002821/0.3135, allocations: 25.58 kB / 434.5 MB, free: 33.89 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 (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.851e-05/0.3136, allocations: 100.3 kB / 434.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002151/0.3138, allocations: 146.6 kB / 434.8 MB, free: 33.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3138, allocations: 4 kB / 434.8 MB, free: 33.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.719e-05/0.3139, allocations: 96.31 kB / 434.9 MB, free: 33.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003267/0.3143, allocations: 11.89 kB / 434.9 MB, free: 33.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004623/0.3147, allocations: 260.9 kB / 435.1 MB, free: 33.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001244/0.3149, allocations: 0.7039 MB / 435.8 MB, free: 32.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.299e-05/0.3149, allocations: 25.33 kB / 435.9 MB, free: 32.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.044e-05/0.315, allocations: 21.86 kB / 435.9 MB, free: 32.77 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.315, allocations: 0 / 435.9 MB, free: 32.77 MB / 350.1 MB Notification: Performance of Templates: time 0.002871/0.3178, allocations: 0.9062 MB / 436.8 MB, free: 32.69 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