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.001331/0.001331, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.001495/0.001495, allocations: 157.7 kB / 22.75 MB, free: 1.684 MB / 18.57 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.1 MB / 203.1 MB, free: 5.586 MB / 186.7 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.08236/0.08236, allocations: 12.66 MB / 272.2 MB, free: 0.5 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 345.7 MB, free: 2.262 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.901e-05/2.055e-05, allocations: 2.312 kB / 345.7 MB, free: 2.258 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001555/0.001576, allocations: 1.004 MB / 346.8 MB, free: 1.246 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004986/0.002075, allocations: 267.7 kB / 347 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.625e-05/0.002151, allocations: 7.938 kB / 347 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.00229, allocations: 43.64 kB / 347.1 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002004/0.00249, allocations: 35.73 kB / 347.1 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001256/0.002616, allocations: 79.89 kB / 347.2 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001834/0.002799, allocations: 243.3 kB / 347.4 MB, free: 0.582 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.116e-05/0.00284, allocations: 12.59 kB / 347.4 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.002965, allocations: 139.7 kB / 347.6 MB, free: 444 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.674e-05/0.003012, allocations: 27.84 kB / 347.6 MB, free: 416 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.76e-05/0.003029, allocations: 4 kB / 347.6 MB, free: 412 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.473e-05/0.003084, allocations: 15.98 kB / 347.6 MB, free: 396 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.6e-05/0.00314, allocations: 23.86 kB / 347.6 MB, free: 372 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.092e-05/0.003181, allocations: 27.84 kB / 347.7 MB, free: 344 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.003298, allocations: 75.72 kB / 347.7 MB, free: 268 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.0033, allocations: 4 kB / 347.7 MB, free: 264 kB / 266.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.003301, allocations: 7.984 kB / 347.7 MB, free: 256 kB / 266.7 MB Notification: Performance of Transformations before backend: time 2.985e-06/0.003304, allocations: 0 / 347.7 MB, free: 256 kB / 266.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.0004825/0.003786, allocations: 359.5 kB / 348.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.003817, allocations: 8.031 kB / 348.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.57e-05/0.003883, allocations: 24.84 kB / 348.1 MB, free: 15.83 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.004087, allocations: 146 kB / 348.3 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.957e-05/0.004116, allocations: 8.375 kB / 348.3 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.051e-05/0.004137, allocations: 12.12 kB / 348.3 MB, free: 15.64 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003262/0.004463, allocations: 163.6 kB / 348.5 MB, free: 15.46 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.004472, allocations: 4 kB / 348.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.004488, allocations: 4 kB / 348.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.004493, allocations: 0 / 348.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/0.004741, allocations: 97.58 kB / 348.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008341/0.005575, allocations: 0.6808 MB / 349.2 MB, free: 14.62 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.005791, allocations: 106.9 kB / 349.3 MB, free: 14.49 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.005893, allocations: 59.42 kB / 349.4 MB, free: 14.42 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.799e-06/0.005903, allocations: 3.984 kB / 349.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.006132, allocations: 126.8 kB / 349.5 MB, free: 14.27 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.293e-06/0.006133, allocations: 0 / 349.5 MB, free: 14.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.00044/0.006573, allocations: 218.5 kB / 349.7 MB, free: 14.03 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.67e-05/0.00666, allocations: 110.8 kB / 349.8 MB, free: 13.89 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001867/0.006846, allocations: 173.8 kB / 350 MB, free: 13.71 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.006871, allocations: 25.7 kB / 350 MB, free: 13.68 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.888e-05/0.00697, allocations: 112 kB / 350.2 MB, free: 13.57 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.006999, allocations: 23.8 kB / 350.2 MB, free: 13.54 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.007063, allocations: 37.7 kB / 350.2 MB, free: 13.5 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.00725, allocations: 322.8 kB / 350.5 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.007354, allocations: 61.67 kB / 350.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.007519, allocations: 110.1 kB / 350.7 MB, free: 12.97 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004266/0.007945, allocations: 269.6 kB / 351 MB, free: 12.66 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.007947, allocations: 0 / 351 MB, free: 12.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004014/0.008349, allocations: 228.8 kB / 351.2 MB, free: 12.42 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.008387, allocations: 33.7 kB / 351.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.008394, allocations: 4 kB / 351.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.008416, allocations: 7.938 kB / 351.2 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.884e-05/0.008505, allocations: 19.92 kB / 351.2 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.00851, allocations: 0 / 351.2 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.406e-05/0.008584, allocations: 15.89 kB / 351.3 MB, free: 12.33 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.953e-05/0.008604, allocations: 8.188 kB / 351.3 MB, free: 12.32 MB / 282.7 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.0001899/0.008794, allocations: 171.6 kB / 351.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.983e-05/0.008834, allocations: 15.95 kB / 351.5 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.252e-05/0.008866, allocations: 13.16 kB / 351.5 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.00887, allocations: 7.938 kB / 351.5 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.008874, allocations: 0 / 351.5 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.008879, allocations: 3.984 kB / 351.5 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006259/0.009505, allocations: 456.8 kB / 351.9 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.009509, allocations: 8 kB / 351.9 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.03e-05/0.00954, allocations: 3.984 kB / 351.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.009547, allocations: 7.938 kB / 351.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.009555, allocations: 0 / 351.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.009557, allocations: 3.938 kB / 351.9 MB, free: 11.58 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.00956, allocations: 4 kB / 352 MB, free: 11.58 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003828/0.009943, allocations: 338.1 kB / 352.3 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.499e-05/0.009968, allocations: 19.78 kB / 352.3 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.08e-05/0.009989, allocations: 4 kB / 352.3 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.01009, allocations: 0 / 352.3 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.83e-05/0.01015, allocations: 23.97 kB / 352.3 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.01016, allocations: 128 / 352.3 MB, free: 11.17 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001088/0.01027, allocations: 120.9 kB / 352.4 MB, free: 11.05 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01027, allocations: 0 / 352.4 MB, free: 11.05 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003024/0.01057, allocations: 16 kB / 352.5 MB, free: 11.04 MB / 282.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: 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.000144/0.01071, allocations: 105.6 kB / 352.6 MB, free: 10.93 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003207/0.01103, allocations: 199 kB / 352.8 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.01103, allocations: 4 kB / 352.8 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.01119, allocations: 125 kB / 352.9 MB, free: 10.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.01152, allocations: 12 kB / 352.9 MB, free: 10.55 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005606/0.01208, allocations: 271.5 kB / 353.2 MB, free: 10.26 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000112/0.01219, allocations: 97.3 kB / 353.3 MB, free: 10.14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.901e-05/0.01226, allocations: 16.97 kB / 353.3 MB, free: 10.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.381e-05/0.0123, allocations: 20.48 kB / 353.3 MB, free: 10.11 MB / 282.7 MB Notification: Performance of SimCode: time 3.3e-07/0.0123, allocations: 0 / 353.3 MB, free: 10.11 MB / 282.7 MB Notification: Performance of Templates: time 0.004137/0.01644, allocations: 1.044 MB / 354.3 MB, free: 9.086 MB / 282.7 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/jenkins/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.200645118020475]