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.001313/0.001313, allocations: 112.5 kB / 16.42 MB, free: 6.449 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.001098/0.001098, allocations: 188.2 kB / 17.35 MB, free: 5.719 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.343/1.343, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07468/0.07468, allocations: 16.73 MB / 307.9 MB, free: 14.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 63.89 kB / 427 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08541/0.08658, allocations: 53.48 MB / 480.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002129/0.08874, allocations: 1.051 MB / 481.5 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006868/0.08945, allocations: 275.7 kB / 481.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.08958, allocations: 4 kB / 481.8 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.08979, allocations: 35.72 kB / 481.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002375/0.09004, allocations: 43.66 kB / 481.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000179/0.09022, allocations: 71.89 kB / 482 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003004/0.09054, allocations: 239.5 kB / 482.2 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.769e-05/0.09061, allocations: 20.39 kB / 482.2 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.0908, allocations: 123.6 kB / 482.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.868e-05/0.09088, allocations: 43.55 kB / 482.4 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.144e-05/0.09091, allocations: 4 kB / 482.4 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.166e-05/0.09098, allocations: 15.98 kB / 482.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.387e-05/0.09106, allocations: 19.92 kB / 482.4 MB, free: 3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.658e-05/0.09112, allocations: 47.67 kB / 482.5 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001627/0.09129, allocations: 79.66 kB / 482.5 MB, free: 2.875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.0913, allocations: 0 / 482.5 MB, free: 2.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09131, allocations: 0 / 482.5 MB, free: 2.875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.09132, allocations: 0 / 482.5 MB, free: 2.875 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.0005655/0.09189, allocations: 436.7 kB / 483 MB, free: 2.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.09194, allocations: 15.88 kB / 483 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.466e-05/0.09199, allocations: 16.72 kB / 483 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/0.09219, allocations: 202.7 kB / 483.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.143e-05/0.09223, allocations: 15.98 kB / 483.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.09226, allocations: 8 kB / 483.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.09255, allocations: 133.1 kB / 483.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.09257, allocations: 0 / 483.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.09259, allocations: 4 kB / 483.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.0926, allocations: 0 / 483.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002143/0.09282, allocations: 79.81 kB / 483.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008652/0.0937, allocations: 0.902 MB / 484.3 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.0939, allocations: 81.28 kB / 484.4 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.778e-05/0.09398, allocations: 29.7 kB / 484.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.779e-06/0.09399, allocations: 7.875 kB / 484.5 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001915/0.09419, allocations: 93.09 kB / 484.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.763e-06/0.09421, allocations: 4 kB / 484.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003509/0.09456, allocations: 155.1 kB / 484.7 MB, free: 456 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.09464, allocations: 106.8 kB / 484.8 MB, free: 324 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.09479, allocations: 166.4 kB / 485 MB, free: 148 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.09482, allocations: 33.7 kB / 485 MB, free: 108 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.631e-05/0.09491, allocations: 120.1 kB / 485.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.09494, allocations: 15.81 kB / 485.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.412e-05/0.095, allocations: 41.7 kB / 485.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.09511, allocations: 322.8 kB / 485.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.63e-05/0.09519, allocations: 27.98 kB / 485.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.844e-05/0.0953, allocations: 86.8 kB / 485.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000351/0.09566, allocations: 273.3 kB / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.09567, allocations: 0 / 485.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002847/0.09596, allocations: 183.4 kB / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.199e-05/0.09602, allocations: 33.7 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.09604, allocations: 4 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.09606, allocations: 4 kB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.055e-05/0.09615, allocations: 24.05 kB / 486.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.09617, allocations: 4 kB / 486.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.097e-05/0.09625, allocations: 15.91 kB / 486.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.09627, allocations: 4 kB / 486.1 MB, free: 14.86 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.0001544/0.09643, allocations: 171.3 kB / 486.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.09646, allocations: 23.75 kB / 486.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.962e-05/0.0965, allocations: 17 kB / 486.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.09651, allocations: 0 / 486.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.09651, allocations: 0 / 486.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.16e-05/0.09656, allocations: 89.19 kB / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.09659, allocations: 4 kB / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.381e-05/0.09664, allocations: 0 / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.379e-05/0.0967, allocations: 19.97 kB / 486.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002796/0.09698, allocations: 341.2 kB / 486.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002706/0.09727, allocations: 387.5 kB / 487.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.033e-05/0.09736, allocations: 35.97 kB / 487.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.091e-05/0.09745, allocations: 128.2 kB / 487.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of Backend: time 2.8e-07/0.09745, allocations: 0 / 487.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005439/0.098, allocations: 205.8 kB / 487.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of SimCode: time 0.0005474/0.09856, allocations: 0.701 MB / 488.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of Templates: time 0.003596/0.1022, allocations: 1.124 MB / 489.4 MB, free: 11.48 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