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.0008497/0.0008497, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008978/0.0008978, allocations: 168.7 kB / 15.95 MB, free: 204 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.167/1.167, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1627/0.1627, allocations: 16.73 MB / 307.8 MB, free: 15.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002523/0.0002523, allocations: 11.98 kB / 372.8 MB, free: 3.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2241, allocations: 54.48 MB / 427.3 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.0007861/0.2249, allocations: 0.7646 MB / 428 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004119/0.2253, allocations: 271 kB / 428.3 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.666e-05/0.2254, allocations: 0 / 428.3 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.2255, allocations: 35.08 kB / 428.3 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001482/0.2257, allocations: 27.75 kB / 428.4 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.924e-05/0.2258, allocations: 49.8 kB / 428.4 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.226, allocations: 203.1 kB / 428.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.203e-05/0.226, allocations: 18.47 kB / 428.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.691e-05/0.2261, allocations: 99.78 kB / 428.7 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.797e-05/0.2262, allocations: 40.16 kB / 428.8 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.268e-05/0.2262, allocations: 3.031 kB / 428.8 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.109e-05/0.2262, allocations: 16 kB / 428.8 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.721e-05/0.2263, allocations: 20.23 kB / 428.8 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.003e-05/0.2263, allocations: 38.92 kB / 428.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.132e-05/0.2264, allocations: 50.92 kB / 428.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2264, allocations: 0 / 428.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2264, allocations: 0 / 428.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.785e-06/0.2264, allocations: 2.75 kB / 428.9 MB, free: 37.69 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.0003333/0.2268, allocations: 424.6 kB / 429.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.437e-05/0.2268, allocations: 11.05 kB / 429.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.337e-05/0.2268, allocations: 16.91 kB / 429.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.2269, allocations: 201.1 kB / 429.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.227, allocations: 8.203 kB / 429.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.227, allocations: 10.53 kB / 429.6 MB, free: 37.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.2272, allocations: 139 kB / 429.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.2272, allocations: 0 / 429.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.2272, allocations: 3.953 kB / 429.7 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.2272, allocations: 4.688 kB / 429.7 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.2274, allocations: 71.5 kB / 429.8 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004912/0.2279, allocations: 0.9017 MB / 430.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.228, allocations: 90.11 kB / 430.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.11e-05/0.2281, allocations: 33.42 kB / 430.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.554e-06/0.2281, allocations: 0 / 430.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001331/0.2282, allocations: 95.48 kB / 430.9 MB, free: 35.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.2282, allocations: 4 kB / 430.9 MB, free: 35.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002436/0.2285, allocations: 157.1 kB / 431 MB, free: 35.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.75e-05/0.2285, allocations: 105.3 kB / 431.1 MB, free: 35.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.845e-05/0.2286, allocations: 173.4 kB / 431.3 MB, free: 35.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.042e-05/0.2286, allocations: 32.14 kB / 431.3 MB, free: 35.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.764e-05/0.2287, allocations: 109.1 kB / 431.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.674e-05/0.2287, allocations: 30.58 kB / 431.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-06/0.2287, allocations: 7.312 kB / 431.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.584e-05/0.2288, allocations: 324.4 kB / 431.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.851e-05/0.2288, allocations: 31.3 kB / 431.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.53e-05/0.2289, allocations: 87.86 kB / 431.9 MB, free: 35.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.438e-05/0.229, allocations: 66.78 kB / 432 MB, free: 35.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.229, allocations: 0 / 432 MB, free: 35.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002059/0.2292, allocations: 191.2 kB / 432.2 MB, free: 35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.2292, allocations: 29.08 kB / 432.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2292, allocations: 2.969 kB / 432.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.2292, allocations: 3.25 kB / 432.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.924e-05/0.2293, allocations: 13.88 kB / 432.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.2293, allocations: 9.688 kB / 432.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.596e-05/0.2294, allocations: 22.83 kB / 432.3 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.2294, allocations: 9.641 kB / 432.3 MB, free: 34.95 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.0001042/0.2295, allocations: 164.1 kB / 432.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.577e-05/0.2295, allocations: 14.56 kB / 432.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.393e-05/0.2296, allocations: 14.16 kB / 432.5 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.2296, allocations: 2.938 kB / 432.5 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2296, allocations: 320 / 432.5 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2296, allocations: 0 / 432.5 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000308/0.2299, allocations: 0.5056 MB / 433 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2299, allocations: 0 / 433 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.526e-05/0.2299, allocations: 7.016 kB / 433 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2299, allocations: 6.844 kB / 433 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.23, allocations: 0 / 433 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.23, allocations: 2.875 kB / 433 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.23, allocations: 3.953 kB / 433 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001628/0.2301, allocations: 308.1 kB / 433.3 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.136e-05/0.2302, allocations: 91.77 kB / 433.4 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.2302, allocations: 9.172 kB / 433.4 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.753e-05/0.2303, allocations: 3.031 kB / 433.4 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.746e-05/0.2303, allocations: 19.95 kB / 433.4 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.2303, allocations: 2.906 kB / 433.4 MB, free: 34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.228e-05/0.2304, allocations: 130.8 kB / 433.5 MB, free: 33.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2304, allocations: 0 / 433.5 MB, free: 33.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002585/0.2307, allocations: 20.69 kB / 433.6 MB, free: 33.92 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 7.905e-05/0.2307, allocations: 101.8 kB / 433.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001778/0.2309, allocations: 139.9 kB / 433.8 MB, free: 33.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2309, allocations: 0 / 433.8 MB, free: 33.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.527e-05/0.231, allocations: 101.5 kB / 433.9 MB, free: 33.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.2313, allocations: 11.62 kB / 433.9 MB, free: 33.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003639/0.2317, allocations: 255.1 kB / 434.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.642e-05/0.2318, allocations: 0.7019 MB / 434.9 MB, free: 32.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.983e-05/0.2318, allocations: 26.17 kB / 434.9 MB, free: 32.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.531e-05/0.2319, allocations: 17.19 kB / 434.9 MB, free: 32.81 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.2319, allocations: 0 / 434.9 MB, free: 32.81 MB / 350.1 MB Notification: Performance of Templates: time 0.002381/0.2343, allocations: 0.8994 MB / 435.8 MB, free: 32.73 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