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 3.0.0-master/package.mo", uses=false) Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.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.0009208/0.0009207, allocations: 99.03 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 183.6 kB / 16.92 MB, free: 6.918 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.413/1.413, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.2069/0.2069, allocations: 16.73 MB / 308.8 MB, free: 15.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003306, allocations: 8 kB / 374.1 MB, free: 3.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.311, allocations: 54.47 MB / 428.6 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001077/0.3121, allocations: 0.8025 MB / 429.4 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005502/0.3126, allocations: 288.9 kB / 429.6 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.331e-05/0.3127, allocations: 0 / 429.6 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.3129, allocations: 34.42 kB / 429.7 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.3131, allocations: 33.17 kB / 429.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001114/0.3132, allocations: 64.95 kB / 429.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001843/0.3134, allocations: 213.6 kB / 430 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.706e-05/0.3134, allocations: 19.91 kB / 430 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.57e-05/0.3135, allocations: 99.91 kB / 430.1 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.546e-05/0.3136, allocations: 46.52 kB / 430.1 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.527e-05/0.3136, allocations: 2.938 kB / 430.1 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.684e-05/0.3137, allocations: 12.5 kB / 430.2 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.408e-05/0.3137, allocations: 19.81 kB / 430.2 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.875e-05/0.3138, allocations: 66.27 kB / 430.2 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.115e-05/0.3139, allocations: 53.42 kB / 430.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3139, allocations: 6.719 kB / 430.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3139, allocations: 0 / 430.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.3139, allocations: 0 / 430.3 MB, free: 37.75 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.0004225/0.3143, allocations: 422.1 kB / 430.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.3144, allocations: 9.438 kB / 430.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.941e-05/0.3144, allocations: 15.59 kB / 430.7 MB, free: 37.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.3146, allocations: 208.2 kB / 430.9 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.3146, allocations: 9.625 kB / 430.9 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.3146, allocations: 5.875 kB / 431 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/0.3149, allocations: 144.2 kB / 431.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.3149, allocations: 0 / 431.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.3149, allocations: 7.062 kB / 431.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.3149, allocations: 0 / 431.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.3151, allocations: 70.38 kB / 431.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005644/0.3157, allocations: 0.9029 MB / 432.1 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/0.3158, allocations: 83.52 kB / 432.2 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.151e-05/0.3159, allocations: 30.75 kB / 432.2 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.867e-06/0.3159, allocations: 11.78 kB / 432.2 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001529/0.3161, allocations: 94.47 kB / 432.3 MB, free: 36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.3161, allocations: 3 kB / 432.3 MB, free: 36 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002879/0.3164, allocations: 150 kB / 432.4 MB, free: 35.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.3164, allocations: 117.3 kB / 432.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.3165, allocations: 171.5 kB / 432.7 MB, free: 35.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.3166, allocations: 31.97 kB / 432.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.62e-05/0.3166, allocations: 114.2 kB / 432.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.731e-05/0.3166, allocations: 21.31 kB / 432.9 MB, free: 35.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.676e-05/0.3167, allocations: 25.59 kB / 432.9 MB, free: 35.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.556e-05/0.3167, allocations: 323.9 kB / 433.2 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.658e-05/0.3168, allocations: 30.5 kB / 433.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.248e-05/0.3169, allocations: 78.88 kB / 433.3 MB, free: 35.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000268/0.3171, allocations: 275.2 kB / 433.6 MB, free: 34.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3172, allocations: 0 / 433.6 MB, free: 34.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002297/0.3174, allocations: 194.3 kB / 433.8 MB, free: 34.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3174, allocations: 37.14 kB / 433.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.3174, allocations: 0 / 433.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.3175, allocations: 2.656 kB / 433.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.963e-05/0.3175, allocations: 24.48 kB / 433.9 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.3175, allocations: 5.438 kB / 433.9 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.148e-05/0.3176, allocations: 14.94 kB / 433.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.3176, allocations: 14.84 kB / 433.9 MB, free: 34.82 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.0001157/0.3178, allocations: 157.5 kB / 434 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.894e-05/0.3178, allocations: 22.53 kB / 434.1 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.761e-05/0.3178, allocations: 14.09 kB / 434.1 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3178, allocations: 6.469 kB / 434.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3178, allocations: 0 / 434.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3178, allocations: 4.672 kB / 434.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003602/0.3182, allocations: 0.4971 MB / 434.6 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3182, allocations: 0 / 434.6 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.674e-05/0.3182, allocations: 3.156 kB / 434.6 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3183, allocations: 0 / 434.6 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.3183, allocations: 4.188 kB / 434.6 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3183, allocations: 0 / 434.6 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3183, allocations: 0 / 434.6 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001932/0.3185, allocations: 319.6 kB / 434.9 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.624e-05/0.3185, allocations: 95.25 kB / 435 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.3185, allocations: 6.906 kB / 435 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-05/0.3186, allocations: 6.469 kB / 435 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.3187, allocations: 12.64 kB / 435 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.3187, allocations: 2.75 kB / 435 MB, free: 33.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.094e-05/0.3188, allocations: 133.8 kB / 435.2 MB, free: 33.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3188, allocations: 0 / 435.2 MB, free: 33.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.3191, allocations: 23.75 kB / 435.2 MB, free: 33.79 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.916e-05/0.3192, allocations: 107.2 kB / 435.3 MB, free: 33.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002126/0.3194, allocations: 140.5 kB / 435.4 MB, free: 33.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3194, allocations: 384 / 435.4 MB, free: 33.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.749e-05/0.3195, allocations: 94.81 kB / 435.5 MB, free: 33.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.3198, allocations: 11.69 kB / 435.5 MB, free: 33.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004305/0.3203, allocations: 291.3 kB / 435.8 MB, free: 33.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001244/0.3204, allocations: 0.7019 MB / 436.5 MB, free: 32.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.419e-05/0.3205, allocations: 24.22 kB / 436.5 MB, free: 32.64 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3205, allocations: 0 / 436.5 MB, free: 32.64 MB / 350.1 MB Notification: Performance of Templates: time 0.002578/0.323, allocations: 1.438 MB / 438 MB, free: 32.52 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