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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 116.1 kB / 17.08 MB, free: 5.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 193.2 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 222.9 MB / 245.7 MB, free: 4.199 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.173/0.173, allocations: 16.71 MB / 314.6 MB, free: 14.86 MB / 254.1 MB " [Timeout remaining time 180] 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=2500,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 70.88 kB / 435.7 MB, free: 37.42 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.109, allocations: 53.48 MB / 489.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001893/0.1109, allocations: 1.058 MB / 490.2 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000573/0.1115, allocations: 271.5 kB / 490.5 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.1116, allocations: 1.438 kB / 490.5 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.1118, allocations: 42.91 kB / 490.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.1121, allocations: 36.8 kB / 490.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001281/0.1122, allocations: 74.64 kB / 490.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002608/0.1125, allocations: 239.2 kB / 490.9 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.03e-05/0.1125, allocations: 20.58 kB / 490.9 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.1126, allocations: 118.6 kB / 491 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.974e-05/0.1127, allocations: 48.03 kB / 491.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.922e-05/0.1127, allocations: 7.672 kB / 491.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.679e-05/0.1128, allocations: 8.5 kB / 491.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.073e-05/0.1129, allocations: 27.56 kB / 491.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.88e-05/0.1129, allocations: 41.88 kB / 491.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.1131, allocations: 84.31 kB / 491.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1131, allocations: 0 / 491.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1131, allocations: 5.234 kB / 491.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1131, allocations: 0 / 491.3 MB, free: 8.664 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.0004818/0.1136, allocations: 436.2 kB / 491.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.1137, allocations: 17.67 kB / 491.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.082e-05/0.1137, allocations: 14.84 kB / 491.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.1139, allocations: 200.3 kB / 491.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.1139, allocations: 12.12 kB / 491.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.1139, allocations: 6.375 kB / 491.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002505/0.1142, allocations: 135.9 kB / 492.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.1142, allocations: 0 / 492.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.1142, allocations: 9.422 kB / 492.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1142, allocations: 7.562 kB / 492.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.1144, allocations: 69.69 kB / 492.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006168/0.115, allocations: 0.9026 MB / 493 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001596/0.1152, allocations: 77.56 kB / 493.1 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.121e-05/0.1153, allocations: 29.06 kB / 493.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.1153, allocations: 9.266 kB / 493.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001696/0.1155, allocations: 92.95 kB / 493.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.363e-06/0.1155, allocations: 0 / 493.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003294/0.1158, allocations: 157.2 kB / 493.4 MB, free: 6.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.1159, allocations: 113.4 kB / 493.5 MB, free: 6.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.116, allocations: 169.2 kB / 493.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.116, allocations: 26.83 kB / 493.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.068e-05/0.1161, allocations: 125.9 kB / 493.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.1161, allocations: 20.23 kB / 493.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.605e-05/0.1161, allocations: 35.39 kB / 493.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.12e-05/0.1162, allocations: 326.2 kB / 494.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.002e-05/0.1163, allocations: 31.23 kB / 494.2 MB, free: 5.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.07e-05/0.1164, allocations: 89.3 kB / 494.3 MB, free: 5.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.1166, allocations: 270.8 kB / 494.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1166, allocations: 0 / 494.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002374/0.1169, allocations: 191.4 kB / 494.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.1169, allocations: 29.7 kB / 494.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.1169, allocations: 8 kB / 494.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.1169, allocations: 0 / 494.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.163e-05/0.117, allocations: 20.11 kB / 494.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.117, allocations: 8 kB / 494.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.074e-05/0.1171, allocations: 24.06 kB / 494.9 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.1171, allocations: 4 kB / 494.9 MB, free: 5.055 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.000122/0.1173, allocations: 167.3 kB / 495 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.919e-05/0.1173, allocations: 19.84 kB / 495 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.865e-05/0.1173, allocations: 24.98 kB / 495.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.1173, allocations: 0 / 495.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.1173, allocations: 0 / 495.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1173, allocations: 0 / 495.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003451/0.1177, allocations: 495.4 kB / 495.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1177, allocations: 0 / 495.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.648e-05/0.1177, allocations: 7.938 kB / 495.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1177, allocations: 0 / 495.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.1178, allocations: 4 kB / 495.6 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.1178, allocations: 4 kB / 495.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1178, allocations: 4 kB / 495.6 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001886/0.118, allocations: 312.3 kB / 495.9 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.348e-05/0.118, allocations: 89.02 kB / 496 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.118, allocations: 0 / 496 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.363e-05/0.1181, allocations: 7.984 kB / 496 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.829e-05/0.1182, allocations: 19.98 kB / 496 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.1182, allocations: 0 / 496 MB, free: 3.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.901e-05/0.1183, allocations: 128.2 kB / 496.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1183, allocations: 0 / 496.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002784/0.1185, allocations: 31.88 kB / 496.1 MB, free: 3.648 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.0001104/0.1187, allocations: 95.25 kB / 496.2 MB, free: 3.547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002151/0.1189, allocations: 151.6 kB / 496.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1189, allocations: 4.062 kB / 496.4 MB, free: 3.383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.305e-05/0.119, allocations: 95.25 kB / 496.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.1193, allocations: 21.86 kB / 496.5 MB, free: 3.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004273/0.1197, allocations: 252.8 kB / 496.8 MB, free: 2.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.1199, allocations: 0.7078 MB / 497.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.41e-05/0.1199, allocations: 27.42 kB / 497.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1199, allocations: 96 / 497.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of Templates: time 0.00276/0.1227, allocations: 1.467 MB / 499 MB, free: 0.7422 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.DisTest.SingleTD.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.683275831863284]