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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002046/0.002046, allocations: 78.17 kB / 19.76 MB, free: 2.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00261/0.00261, allocations: 156.2 kB / 23 MB, free: 4.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo): time 0.07893/0.07893, allocations: 12.66 MB / 272.4 MB, free: 4.137 MB / 254.1 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: PNlib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003605/0.003605, allocations: 68.03 kB / 403.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.121, allocations: 57.58 MB / 460.8 MB, free: 6.266 MB / 430.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.00221/0.1232, allocations: 1.012 MB / 461.8 MB, free: 5.246 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006266/0.1238, allocations: 259.8 kB / 462.1 MB, free: 4.992 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.164e-05/0.1239, allocations: 7.938 kB / 462.1 MB, free: 4.984 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.1241, allocations: 43.7 kB / 462.1 MB, free: 4.941 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001806/0.1242, allocations: 47.66 kB / 462.2 MB, free: 4.895 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001654/0.1244, allocations: 75.89 kB / 462.3 MB, free: 4.82 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002834/0.1247, allocations: 239.4 kB / 462.5 MB, free: 4.586 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.418e-05/0.1247, allocations: 12.59 kB / 462.5 MB, free: 4.574 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.1249, allocations: 115.7 kB / 462.6 MB, free: 4.461 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.559e-05/0.1249, allocations: 51.53 kB / 462.7 MB, free: 4.41 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.549e-05/0.125, allocations: 4 kB / 462.7 MB, free: 4.406 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.319e-05/0.125, allocations: 12 kB / 462.7 MB, free: 4.395 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.4e-05/0.1251, allocations: 31.78 kB / 462.7 MB, free: 4.363 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.268e-05/0.1251, allocations: 27.8 kB / 462.8 MB, free: 4.336 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.1252, allocations: 87.53 kB / 462.8 MB, free: 4.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.1252, allocations: 0 / 462.8 MB, free: 4.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.1252, allocations: 0 / 462.8 MB, free: 4.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1253, allocations: 0 / 462.8 MB, free: 4.25 MB / 430.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.0004539/0.1257, allocations: 367.5 kB / 463.2 MB, free: 3.855 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.268e-05/0.1257, allocations: 8.031 kB / 463.2 MB, free: 3.848 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.751e-05/0.1258, allocations: 16.84 kB / 463.2 MB, free: 3.832 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.1259, allocations: 154.5 kB / 463.4 MB, free: 3.656 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.126, allocations: 4 kB / 463.4 MB, free: 3.652 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.681e-05/0.126, allocations: 8 kB / 463.4 MB, free: 3.645 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002788/0.1263, allocations: 160.3 kB / 463.5 MB, free: 3.457 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.1263, allocations: 0 / 463.5 MB, free: 3.457 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.1263, allocations: 8 kB / 463.5 MB, free: 3.449 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.925e-06/0.1263, allocations: 3.938 kB / 463.6 MB, free: 3.445 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002279/0.1265, allocations: 97.58 kB / 463.6 MB, free: 3.344 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007099/0.1272, allocations: 0.6848 MB / 464.3 MB, free: 2.609 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.1274, allocations: 102.9 kB / 464.4 MB, free: 2.484 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.921e-05/0.1275, allocations: 63.41 kB / 464.5 MB, free: 2.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.051e-06/0.1275, allocations: 0 / 464.5 MB, free: 2.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002007/0.1277, allocations: 126.6 kB / 464.6 MB, free: 2.262 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.042e-06/0.1277, allocations: 0 / 464.6 MB, free: 2.262 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003711/0.1281, allocations: 222.6 kB / 464.8 MB, free: 2.02 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.136e-05/0.1281, allocations: 110.8 kB / 464.9 MB, free: 1.887 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.1283, allocations: 171.2 kB / 465.1 MB, free: 1.703 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.1283, allocations: 29.69 kB / 465.1 MB, free: 1.668 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.74e-05/0.1284, allocations: 120.1 kB / 465.3 MB, free: 1.547 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.857e-05/0.1284, allocations: 27.78 kB / 465.3 MB, free: 1.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.807e-05/0.1285, allocations: 37.7 kB / 465.3 MB, free: 1.477 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1286, allocations: 322.8 kB / 465.6 MB, free: 1.152 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-05/0.1287, allocations: 53.69 kB / 465.7 MB, free: 1.094 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.1289, allocations: 108.5 kB / 465.8 MB, free: 0.957 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.1293, allocations: 265.5 kB / 466.1 MB, free: 0.6484 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1293, allocations: 0 / 466.1 MB, free: 0.6484 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003392/0.1296, allocations: 216.9 kB / 466.3 MB, free: 428 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.1296, allocations: 44.38 kB / 466.3 MB, free: 380 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.1296, allocations: 0 / 466.3 MB, free: 380 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.1297, allocations: 4 kB / 466.3 MB, free: 376 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.122e-05/0.1297, allocations: 15.94 kB / 466.3 MB, free: 360 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1297, allocations: 0 / 466.3 MB, free: 360 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.492e-05/0.1298, allocations: 23.88 kB / 466.4 MB, free: 336 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.1298, allocations: 4 kB / 466.4 MB, free: 332 kB / 430.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.0001726/0.13, allocations: 168.1 kB / 466.5 MB, free: 148 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.13, allocations: 19.83 kB / 466.5 MB, free: 128 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.704e-05/0.1301, allocations: 17.16 kB / 466.6 MB, free: 104 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1301, allocations: 0 / 466.6 MB, free: 104 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1301, allocations: 4 kB / 466.6 MB, free: 100 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.1301, allocations: 0 / 466.6 MB, free: 100 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005421/0.1306, allocations: 469.2 kB / 467 MB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1306, allocations: 8 kB / 467 MB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.118e-05/0.1307, allocations: 4 kB / 467 MB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1307, allocations: 0 / 467 MB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.1307, allocations: 8 kB / 467 MB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1307, allocations: 3.984 kB / 467 MB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1307, allocations: 0 / 467 MB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003327/0.131, allocations: 345.9 kB / 467.4 MB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.957e-05/0.131, allocations: 11.89 kB / 467.4 MB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.1311, allocations: 3.984 kB / 467.4 MB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.1312, allocations: 4 kB / 467.4 MB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.732e-05/0.1312, allocations: 11.98 kB / 467.4 MB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.1312, allocations: 7.984 kB / 467.4 MB, free: 15.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001046/0.1313, allocations: 120.9 kB / 467.5 MB, free: 15.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1313, allocations: 7.938 kB / 467.5 MB, free: 15.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003046/0.1316, allocations: 20 kB / 467.6 MB, free: 15.02 MB / 446.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.0001173/0.1317, allocations: 101.6 kB / 467.7 MB, free: 14.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003045/0.132, allocations: 198.6 kB / 467.9 MB, free: 14.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.132, allocations: 0 / 467.9 MB, free: 14.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.1322, allocations: 109.1 kB / 468 MB, free: 14.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.1325, allocations: 20.3 kB / 468 MB, free: 14.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005074/0.133, allocations: 276.5 kB / 468.3 MB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000102/0.1331, allocations: 89.31 kB / 468.3 MB, free: 14.14 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.947e-05/0.1332, allocations: 20.95 kB / 468.4 MB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.319e-05/0.1332, allocations: 16.5 kB / 468.4 MB, free: 14.1 MB / 446.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1332, allocations: 0 / 468.4 MB, free: 14.1 MB / 446.1 MB Notification: Performance of Templates: time 0.003791/0.137, allocations: 1.022 MB / 469.4 MB, free: 13.09 MB / 446.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 -s ida -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/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: 4.470942075946368]