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.001753/0.001753, allocations: 105.6 kB / 16.41 MB, free: 6.496 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.001842/0.001842, allocations: 189.7 kB / 17.34 MB, free: 5.766 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.546/1.546, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.09849/0.09849, allocations: 16.73 MB / 307.9 MB, free: 14.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 67.89 kB / 427 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.112, allocations: 53.48 MB / 480.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002079/0.1141, allocations: 1.057 MB / 481.5 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006129/0.1147, allocations: 275.7 kB / 481.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.037e-05/0.1148, allocations: 0 / 481.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.115, allocations: 43.72 kB / 481.9 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.1152, allocations: 43.64 kB / 481.9 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001384/0.1153, allocations: 71.91 kB / 482 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000263/0.1156, allocations: 235.5 kB / 482.2 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.878e-05/0.1157, allocations: 24.38 kB / 482.2 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.1158, allocations: 111.6 kB / 482.3 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.148e-05/0.1159, allocations: 55.53 kB / 482.4 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.1159, allocations: 4 kB / 482.4 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.194e-05/0.116, allocations: 15.98 kB / 482.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.064e-05/0.1161, allocations: 15.92 kB / 482.4 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.688e-05/0.1161, allocations: 39.73 kB / 482.5 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001366/0.1163, allocations: 79.66 kB / 482.5 MB, free: 2.895 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1163, allocations: 3.938 kB / 482.5 MB, free: 2.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1163, allocations: 4 kB / 482.5 MB, free: 2.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1163, allocations: 0 / 482.5 MB, free: 2.887 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.0005159/0.1168, allocations: 440.6 kB / 483 MB, free: 2.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.1168, allocations: 11.89 kB / 483 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/0.1169, allocations: 20.77 kB / 483 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.1171, allocations: 198.9 kB / 483.2 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.1171, allocations: 8 kB / 483.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.788e-05/0.1171, allocations: 7.984 kB / 483.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002668/0.1174, allocations: 141.1 kB / 483.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.1174, allocations: 0 / 483.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.1174, allocations: 4 kB / 483.4 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.1174, allocations: 0 / 483.4 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.1176, allocations: 71.83 kB / 483.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008091/0.1185, allocations: 0.9019 MB / 484.3 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.1186, allocations: 85.27 kB / 484.4 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.256e-05/0.1187, allocations: 33.7 kB / 484.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.03e-05/0.1187, allocations: 3.938 kB / 484.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.1189, allocations: 96.97 kB / 484.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.243e-06/0.1189, allocations: 0 / 484.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003387/0.1193, allocations: 159.3 kB / 484.7 MB, free: 468 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.1194, allocations: 106.8 kB / 484.8 MB, free: 336 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/0.1195, allocations: 170.4 kB / 485 MB, free: 156 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.1195, allocations: 29.7 kB / 485 MB, free: 120 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.176e-05/0.1196, allocations: 120 kB / 485.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.1196, allocations: 19.88 kB / 485.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.319e-05/0.1197, allocations: 37.7 kB / 485.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1198, allocations: 326.8 kB / 485.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.992e-05/0.1199, allocations: 36.05 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.708e-05/0.12, allocations: 78.8 kB / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003507/0.1204, allocations: 269.4 kB / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1204, allocations: 0 / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002718/0.1207, allocations: 179.3 kB / 486 MB, free: 14.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.1207, allocations: 37.69 kB / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.1207, allocations: 4 kB / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.1207, allocations: 0 / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.271e-05/0.1208, allocations: 19.88 kB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.1208, allocations: 7.984 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.58e-05/0.1209, allocations: 19.84 kB / 486.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.1209, allocations: 4 kB / 486.1 MB, free: 14.87 MB / 366.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.0001576/0.1211, allocations: 171.4 kB / 486.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.1211, allocations: 19.75 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.883e-05/0.1212, allocations: 13 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.1212, allocations: 0 / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.1212, allocations: 0 / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1212, allocations: 0 / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004712/0.1217, allocations: 0.4916 MB / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1217, allocations: 4.125 kB / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.016e-05/0.1217, allocations: 8 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.1217, allocations: 240 / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.1217, allocations: 0 / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.1217, allocations: 7.938 kB / 486.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1217, allocations: 0 / 486.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.122, allocations: 320.1 kB / 487.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.266e-05/0.1221, allocations: 89.02 kB / 487.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.1221, allocations: 4 kB / 487.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.871e-05/0.1222, allocations: 7.984 kB / 487.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.203e-05/0.1223, allocations: 11.98 kB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.1223, allocations: 0 / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.63e-05/0.1224, allocations: 128.2 kB / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1224, allocations: 0 / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002955/0.1227, allocations: 31.84 kB / 487.4 MB, free: 13.46 MB / 366.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 0.0001179/0.1228, allocations: 107.2 kB / 487.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002641/0.1231, allocations: 147.2 kB / 487.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1231, allocations: 0 / 487.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.1232, allocations: 87.33 kB / 487.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.1235, allocations: 12 kB / 487.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005111/0.124, allocations: 257.2 kB / 488 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.1243, allocations: 0.7158 MB / 488.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.311e-05/0.1244, allocations: 15.44 kB / 488.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1244, allocations: 3.938 kB / 488.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of Templates: time 0.5449/0.6693, allocations: 1.487 MB / 490.2 MB, free: 10.54 MB / 366.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches