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.001328/0.001328, allocations: 91.3 kB / 15.36 MB, free: 0.7344 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.00761/0.00761, allocations: 170 kB / 16.26 MB, free: 6.68 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.155/1.155, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1542/0.1542, allocations: 16.73 MB / 308.2 MB, free: 15.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000249/0.000249, allocations: 12 kB / 373.4 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2151, allocations: 54.48 MB / 427.9 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.0008536/0.216, allocations: 0.7967 MB / 428.7 MB, free: 38.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005624/0.2166, allocations: 285.9 kB / 429 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.72e-05/0.2167, allocations: 6.812 kB / 429 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.2169, allocations: 31.56 kB / 429 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001654/0.217, allocations: 34.92 kB / 429 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001285/0.2172, allocations: 64.95 kB / 429.1 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00017/0.2173, allocations: 210.7 kB / 429.3 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.383e-05/0.2174, allocations: 20.5 kB / 429.3 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.2175, allocations: 98.03 kB / 429.4 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.071e-05/0.2176, allocations: 46.14 kB / 429.5 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.437e-05/0.2176, allocations: 0 / 429.5 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.535e-05/0.2176, allocations: 14.19 kB / 429.5 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.729e-05/0.2177, allocations: 25.47 kB / 429.5 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.702e-05/0.2178, allocations: 67.11 kB / 429.6 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.685e-05/0.2179, allocations: 75.77 kB / 429.6 MB, free: 38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2179, allocations: 0 / 429.6 MB, free: 38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2179, allocations: 0 / 429.6 MB, free: 38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.396e-06/0.2179, allocations: 3 kB / 429.6 MB, free: 38 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.0003646/0.2183, allocations: 424.8 kB / 430.1 MB, free: 37.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.845e-05/0.2183, allocations: 8.906 kB / 430.1 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.705e-05/0.2183, allocations: 16.38 kB / 430.1 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.2185, allocations: 201.1 kB / 430.3 MB, free: 37.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.2185, allocations: 5.969 kB / 430.3 MB, free: 37.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.2185, allocations: 11.25 kB / 430.3 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002084/0.2187, allocations: 145.2 kB / 430.4 MB, free: 37.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.2187, allocations: 0 / 430.4 MB, free: 37.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.2188, allocations: 3.5 kB / 430.4 MB, free: 37.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.2188, allocations: 3.969 kB / 430.4 MB, free: 37.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.2189, allocations: 71.14 kB / 430.5 MB, free: 37.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005221/0.2195, allocations: 0.9059 MB / 431.4 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001377/0.2196, allocations: 88.38 kB / 431.5 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.337e-05/0.2197, allocations: 29.06 kB / 431.5 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.105e-05/0.2197, allocations: 3.938 kB / 431.5 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001486/0.2198, allocations: 100.4 kB / 431.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.392e-06/0.2199, allocations: 3.031 kB / 431.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002655/0.2201, allocations: 155.5 kB / 431.8 MB, free: 36.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.722e-05/0.2202, allocations: 108.3 kB / 431.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.63e-05/0.2203, allocations: 170.3 kB / 432.1 MB, free: 35.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.2203, allocations: 31.45 kB / 432.1 MB, free: 35.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.2203, allocations: 113.1 kB / 432.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.594e-05/0.2204, allocations: 27.56 kB / 432.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.2204, allocations: 27.45 kB / 432.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.853e-05/0.2204, allocations: 322.9 kB / 432.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.4e-05/0.2205, allocations: 30.03 kB / 432.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.268e-05/0.2206, allocations: 84.81 kB / 432.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000241/0.2208, allocations: 277.5 kB / 433 MB, free: 35.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2208, allocations: 6.906 kB / 433 MB, free: 35.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002131/0.2211, allocations: 180.2 kB / 433.1 MB, free: 35.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.2211, allocations: 33.42 kB / 433.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.2211, allocations: 0 / 433.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.2211, allocations: 3.938 kB / 433.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.028e-05/0.2212, allocations: 25.62 kB / 433.2 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.2212, allocations: 3.062 kB / 433.2 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.007e-05/0.2213, allocations: 17.44 kB / 433.2 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.2213, allocations: 9 kB / 433.2 MB, free: 35.07 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.0001074/0.2214, allocations: 161.3 kB / 433.4 MB, free: 34.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.676e-05/0.2214, allocations: 22.88 kB / 433.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.683e-05/0.2215, allocations: 14.78 kB / 433.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2215, allocations: 6.906 kB / 433.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.2215, allocations: 0 / 433.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.2215, allocations: 0 / 433.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003226/0.2218, allocations: 0.4961 MB / 433.9 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2218, allocations: 4.062 kB / 433.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.628e-05/0.2218, allocations: 10.94 kB / 433.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.2219, allocations: 2.719 kB / 433.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.2219, allocations: 0 / 433.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.2219, allocations: 2.906 kB / 434 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2219, allocations: 0 / 434 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001755/0.2221, allocations: 317.5 kB / 434.3 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.106e-05/0.2221, allocations: 91.64 kB / 434.4 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.2221, allocations: 10.12 kB / 434.4 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.925e-05/0.2222, allocations: 8.797 kB / 434.4 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.2223, allocations: 6.781 kB / 434.4 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.2223, allocations: 6.844 kB / 434.4 MB, free: 34.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.478e-05/0.2223, allocations: 124.7 kB / 434.5 MB, free: 34.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2223, allocations: 0 / 434.5 MB, free: 34.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.2226, allocations: 25.12 kB / 434.5 MB, free: 34.04 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 8.349e-05/0.2227, allocations: 105.3 kB / 434.6 MB, free: 33.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001878/0.2229, allocations: 145.6 kB / 434.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2229, allocations: 3.438 kB / 434.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.024e-05/0.223, allocations: 88.02 kB / 434.9 MB, free: 33.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.2233, allocations: 14.97 kB / 434.9 MB, free: 33.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003753/0.2237, allocations: 263 kB / 435.1 MB, free: 33.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001058/0.2238, allocations: 0.7083 MB / 435.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.896e-05/0.2238, allocations: 18.73 kB / 435.9 MB, free: 32.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.806e-05/0.2239, allocations: 14.06 kB / 435.9 MB, free: 32.92 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2239, allocations: 0 / 435.9 MB, free: 32.92 MB / 350.1 MB Notification: Performance of Templates: time 0.002638/0.2265, allocations: 0.9188 MB / 436.8 MB, free: 32.84 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