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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001515, allocations: 171 kB / 7.646 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 205.3 MB / 213.4 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008066/0.0008066, allocations: 97.55 kB / 261.4 MB, free: 13.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.07/0.07, allocations: 16.73 MB / 326.1 MB, free: 12.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.827e-05/1.847e-05, allocations: 4 kB / 384 MB, free: 70.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1172, allocations: 51.7 MB / 435.7 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4157/0.533, allocations: 76.29 MB / 0.5 GB, free: 10.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.5333, allocations: 66.88 kB / 0.5 GB, free: 10.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004415/0.5377, allocations: 1.88 MB / 0.5019 GB, free: 9.617 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5378, allocations: 0 / 0.5019 GB, free: 9.617 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.018e-05/0.5378, allocations: 7.844 kB / 0.5019 GB, free: 9.613 MB / 330.7 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.0004818/0.5383, allocations: 400.7 kB / 0.5023 GB, free: 9.223 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.5384, allocations: 11.53 kB / 0.5023 GB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.919e-05/0.5384, allocations: 11.5 kB / 0.5023 GB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.5386, allocations: 198.7 kB / 0.5025 GB, free: 9.008 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.5387, allocations: 6.281 kB / 0.5025 GB, free: 9.008 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.5387, allocations: 3.875 kB / 0.5025 GB, free: 9.008 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000155/0.5389, allocations: 42.72 kB / 0.5025 GB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001607/0.539, allocations: 108 kB / 0.5026 GB, free: 8.922 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.5391, allocations: 7.781 kB / 0.5026 GB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.5391, allocations: 2.297 kB / 0.5026 GB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.5391, allocations: 3.844 kB / 0.5026 GB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006062/0.5397, allocations: 0.7132 MB / 0.5033 GB, free: 8.258 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.5398, allocations: 70.2 kB / 0.5034 GB, free: 8.211 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.942e-05/0.5399, allocations: 31.81 kB / 0.5034 GB, free: 8.191 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.5399, allocations: 0 / 0.5034 GB, free: 8.191 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001093/0.54, allocations: 84.3 kB / 0.5035 GB, free: 8.121 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 9.91e-07/0.54, allocations: 0 / 0.5035 GB, free: 8.121 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002465/0.5403, allocations: 77.72 kB / 0.5036 GB, free: 8.082 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.5403, allocations: 118.1 kB / 0.5037 GB, free: 7.949 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.5404, allocations: 147.4 kB / 0.5038 GB, free: 7.844 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.5405, allocations: 29.64 kB / 0.5039 GB, free: 7.809 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.879e-05/0.5405, allocations: 115.5 kB / 0.504 GB, free: 7.719 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.5406, allocations: 28.38 kB / 0.504 GB, free: 7.703 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-06/0.5406, allocations: 0 / 0.504 GB, free: 7.703 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.921e-05/0.5406, allocations: 324.7 kB / 0.5043 GB, free: 7.387 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.572e-05/0.5407, allocations: 18.81 kB / 0.5043 GB, free: 7.387 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.311e-05/0.5408, allocations: 71.59 kB / 0.5044 GB, free: 7.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.381e-05/0.5408, allocations: 27.77 kB / 0.5044 GB, free: 7.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.5408, allocations: 4 kB / 0.5044 GB, free: 7.316 MB / 330.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001632/0.541, allocations: 124.5 kB / 0.5046 GB, free: 7.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.541, allocations: 31.56 kB / 0.5046 GB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.5411, allocations: 3.844 kB / 0.5046 GB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.5411, allocations: 7.922 kB / 0.5046 GB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-05/0.5412, allocations: 17.44 kB / 0.5046 GB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.5412, allocations: 0 / 0.5046 GB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.585e-05/0.5413, allocations: 18.25 kB / 0.5046 GB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.5413, allocations: 11.16 kB / 0.5046 GB, free: 7.219 MB / 330.7 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = false protected = true ) "next putative firing time" type: Real T1.ani:DISCRETE(fixed = false protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = false 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: 14 ($whenCondition1,$PRE.T1.firingTime,T1.firingTime,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.active,T1.active,$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,T1.firingCon,T1.enabledByInPlaces,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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.0001719/0.5415, allocations: 137.4 kB / 0.5048 GB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.977e-05/0.5415, allocations: 11.59 kB / 0.5048 GB, free: 7.078 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.151e-05/0.5415, allocations: 15.72 kB / 0.5048 GB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.5416, allocations: 6.859 kB / 0.5048 GB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.5416, allocations: 4 kB / 0.5048 GB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.5416, allocations: 0 / 0.5048 GB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/0.5419, allocations: 330 kB / 0.5051 GB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5419, allocations: 0 / 0.5051 GB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.19e-05/0.5419, allocations: 6.891 kB / 0.5051 GB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.5419, allocations: 0 / 0.5051 GB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.5419, allocations: 7.266 kB / 0.5051 GB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.5419, allocations: 3.969 kB / 0.5051 GB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.5419, allocations: 0 / 0.5051 GB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001503/0.5421, allocations: 195.5 kB / 0.5053 GB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.77e-05/0.5422, allocations: 84.86 kB / 0.5054 GB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.739e-05/0.5422, allocations: 11.36 kB / 0.5054 GB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.858e-05/0.5423, allocations: 6.797 kB / 0.5054 GB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.647e-05/0.5423, allocations: 7.25 kB / 0.5054 GB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.5424, allocations: 10.88 kB / 0.5054 GB, free: 6.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.759e-05/0.5424, allocations: 115.7 kB / 0.5056 GB, free: 6.441 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5424, allocations: 0 / 0.5056 GB, free: 6.441 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002329/0.5427, allocations: 19.28 kB / 0.5056 GB, free: 6.438 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (T1.fireTime,T1.ani,T1.active,$whenCondition1,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * 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.0001014/0.5428, allocations: 90.94 kB / 0.5057 GB, free: 6.352 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001645/0.543, allocations: 130.5 kB / 0.5058 GB, free: 6.281 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.543, allocations: 384 / 0.5058 GB, free: 6.281 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.637e-05/0.543, allocations: 80.42 kB / 0.5059 GB, free: 6.215 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001822/0.5432, allocations: 11.53 kB / 0.5059 GB, free: 6.211 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002983/0.5435, allocations: 132.9 kB / 0.506 GB, free: 6.121 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.5438, allocations: 0.7114 MB / 0.5067 GB, free: 5.422 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.125e-05/0.5438, allocations: 15.5 kB / 0.5067 GB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.699e-05/0.5438, allocations: 11.31 kB / 0.5067 GB, free: 5.414 MB / 330.7 MB Notification: Performance of SimCode: time 1.983e-06/0.5439, allocations: 0 / 0.5067 GB, free: 5.414 MB / 330.7 MB Notification: Performance of Templates: time 0.003156/0.547, allocations: 0.7415 MB / 0.5074 GB, free: 5.348 MB / 330.7 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