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.008643/0.008643, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.001579/0.001579, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.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.2124/0.2124, allocations: 16.76 MB / 307.3 MB, free: 14.94 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001155, allocations: 65.91 kB / 426.4 MB, free: 37.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1081, allocations: 53.48 MB / 479.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.00188/0.11, allocations: 1.047 MB / 480.9 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006005/0.1107, allocations: 280.8 kB / 481.2 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.682e-05/0.1108, allocations: 10.31 kB / 481.2 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.1109, allocations: 38.25 kB / 481.2 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000242/0.1112, allocations: 33.3 kB / 481.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001332/0.1113, allocations: 77.83 kB / 481.3 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002747/0.1116, allocations: 235.3 kB / 481.6 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.891e-05/0.1117, allocations: 20.72 kB / 481.6 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.1118, allocations: 114.2 kB / 481.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.389e-05/0.1119, allocations: 52.92 kB / 481.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.1119, allocations: 4.031 kB / 481.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.374e-05/0.112, allocations: 15.97 kB / 481.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.973e-05/0.1121, allocations: 27.16 kB / 481.8 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.554e-05/0.1121, allocations: 38.89 kB / 481.8 MB, free: 9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.1122, allocations: 83.67 kB / 481.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1123, allocations: 1.812 kB / 481.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1123, allocations: 0 / 481.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.1123, allocations: 0 / 481.9 MB, free: 8.938 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.0004401/0.1127, allocations: 437.8 kB / 482.3 MB, free: 8.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.1128, allocations: 14.2 kB / 482.3 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.295e-05/0.1128, allocations: 11.25 kB / 482.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.113, allocations: 213.6 kB / 482.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.113, allocations: 6.156 kB / 482.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.113, allocations: 6.375 kB / 482.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.1132, allocations: 138 kB / 482.7 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.1133, allocations: 3.938 kB / 482.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1133, allocations: 2.094 kB / 482.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.1133, allocations: 1 kB / 482.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001839/0.1135, allocations: 72.95 kB / 482.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005659/0.1141, allocations: 0.8963 MB / 483.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.1142, allocations: 90.03 kB / 483.8 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.926e-05/0.1143, allocations: 29.52 kB / 483.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.1143, allocations: 3.938 kB / 483.8 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001335/0.1144, allocations: 93.3 kB / 483.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.1144, allocations: 4 kB / 483.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002956/0.1147, allocations: 158 kB / 484.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.97e-05/0.1148, allocations: 109 kB / 484.2 MB, free: 6.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.1149, allocations: 169.5 kB / 484.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.1149, allocations: 31.2 kB / 484.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.8e-05/0.115, allocations: 118.4 kB / 484.5 MB, free: 6.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.115, allocations: 15.53 kB / 484.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-05/0.1151, allocations: 38.14 kB / 484.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.74e-05/0.1151, allocations: 326.1 kB / 484.8 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.012e-05/0.1152, allocations: 31.53 kB / 484.9 MB, free: 6.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.77e-05/0.1153, allocations: 78.19 kB / 485 MB, free: 5.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002688/0.1156, allocations: 271.5 kB / 485.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1156, allocations: 1.531 kB / 485.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002357/0.1158, allocations: 193.4 kB / 485.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.1158, allocations: 38 kB / 485.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.1159, allocations: 3 kB / 485.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.1159, allocations: 2.125 kB / 485.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.229e-05/0.116, allocations: 12.28 kB / 485.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.116, allocations: 9.656 kB / 485.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.063e-05/0.116, allocations: 19.14 kB / 485.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.1161, allocations: 5.156 kB / 485.5 MB, free: 5.488 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.000119/0.1162, allocations: 173 kB / 485.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.149e-05/0.1162, allocations: 21.52 kB / 485.7 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.1163, allocations: 12.47 kB / 485.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1163, allocations: 1.188 kB / 485.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1163, allocations: 9.125 kB / 485.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1163, allocations: 1.188 kB / 485.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000359/0.1166, allocations: 499.5 kB / 486.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1167, allocations: 1.469 kB / 486.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.626e-05/0.1167, allocations: 3.406 kB / 486.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1167, allocations: 0 / 486.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.1167, allocations: 2.594 kB / 486.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1167, allocations: 0 / 486.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1167, allocations: 1.312 kB / 486.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001955/0.1169, allocations: 317.6 kB / 486.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.577e-05/0.117, allocations: 85.14 kB / 486.6 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.117, allocations: 1.375 kB / 486.6 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.637e-05/0.1171, allocations: 10.73 kB / 486.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.461e-05/0.1171, allocations: 9.484 kB / 486.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.1171, allocations: 4.125 kB / 486.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.894e-05/0.1172, allocations: 127.6 kB / 486.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1172, allocations: 4 kB / 486.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.1175, allocations: 25.81 kB / 486.8 MB, free: 4.293 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 0.0001086/0.1176, allocations: 113 kB / 486.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002147/0.1179, allocations: 136.9 kB / 487 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1179, allocations: 0 / 487 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.191e-05/0.118, allocations: 94.78 kB / 487.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.1183, allocations: 19.97 kB / 487.1 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004286/0.1187, allocations: 235.8 kB / 487.4 MB, free: 3.805 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.1189, allocations: 0.7073 MB / 488.1 MB, free: 3.094 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.601e-05/0.1189, allocations: 27.94 kB / 488.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.324e-05/0.119, allocations: 18.3 kB / 488.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.119, allocations: 0 / 488.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of Templates: time 0.003057/0.122, allocations: 1.049 MB / 489.2 MB, free: 2.535 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches