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.001419/0.001419, allocations: 106 kB / 16.41 MB, free: 6.488 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.001334/0.001334, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07604/0.07604, allocations: 16.74 MB / 307.9 MB, free: 14.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 75.88 kB / 427 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1168, allocations: 53.47 MB / 480.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002214/0.119, allocations: 1.062 MB / 481.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006767/0.1197, allocations: 275.7 kB / 481.8 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.021e-05/0.1198, allocations: 4 kB / 481.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001741/0.12, allocations: 35.72 kB / 481.8 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002567/0.1203, allocations: 43.66 kB / 481.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001602/0.1204, allocations: 71.89 kB / 482 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002935/0.1207, allocations: 239.5 kB / 482.2 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.215e-05/0.1208, allocations: 24.39 kB / 482.2 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.121, allocations: 111.7 kB / 482.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.652e-05/0.121, allocations: 51.47 kB / 482.4 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.1211, allocations: 4 kB / 482.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.08e-05/0.1211, allocations: 12 kB / 482.4 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.967e-05/0.1212, allocations: 23.91 kB / 482.4 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.682e-05/0.1213, allocations: 35.75 kB / 482.5 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.1215, allocations: 79.66 kB / 482.5 MB, free: 2.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1215, allocations: 3.984 kB / 482.5 MB, free: 2.898 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1215, allocations: 4 kB / 482.5 MB, free: 2.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1215, allocations: 0 / 482.5 MB, free: 2.895 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.000649/0.1222, allocations: 440.6 kB / 483 MB, free: 2.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1222, allocations: 15.83 kB / 483 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.061e-05/0.1223, allocations: 12.84 kB / 483 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.1225, allocations: 210.5 kB / 483.2 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.1225, allocations: 4 kB / 483.2 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.1225, allocations: 12 kB / 483.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002732/0.1228, allocations: 134.7 kB / 483.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1228, allocations: 3.984 kB / 483.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.1228, allocations: 0 / 483.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.1229, allocations: 4 kB / 483.4 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.1231, allocations: 63.89 kB / 483.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008586/0.1239, allocations: 0.9019 MB / 484.3 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/0.1241, allocations: 93.22 kB / 484.4 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.572e-05/0.1242, allocations: 25.72 kB / 484.4 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.1242, allocations: 15.91 kB / 484.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.1244, allocations: 93.05 kB / 484.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.1245, allocations: 0 / 484.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003397/0.1248, allocations: 155.1 kB / 484.7 MB, free: 472 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.1249, allocations: 106.8 kB / 484.8 MB, free: 340 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.125, allocations: 174.4 kB / 485 MB, free: 156 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.1251, allocations: 25.7 kB / 485 MB, free: 124 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.847e-05/0.1251, allocations: 116.1 kB / 485.1 MB, free: 0 / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.365e-05/0.1252, allocations: 27.84 kB / 485.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.318e-05/0.1253, allocations: 37.66 kB / 485.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1254, allocations: 326.8 kB / 485.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.529e-05/0.1255, allocations: 24.23 kB / 485.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/0.1256, allocations: 78.84 kB / 485.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.1259, allocations: 277.3 kB / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1259, allocations: 4 kB / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002988/0.1263, allocations: 183 kB / 486 MB, free: 14.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/0.1263, allocations: 33.7 kB / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1263, allocations: 0 / 486.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.1263, allocations: 11.92 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.886e-05/0.1264, allocations: 19.94 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.1265, allocations: 4 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.669e-05/0.1265, allocations: 16.08 kB / 486.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.1266, allocations: 12 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.0001689/0.1267, allocations: 159.4 kB / 486.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.256e-05/0.1268, allocations: 19.69 kB / 486.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.537e-05/0.1268, allocations: 16.98 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1268, allocations: 4 kB / 486.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1268, allocations: 0 / 486.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1268, allocations: 4 kB / 486.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004875/0.1273, allocations: 499.4 kB / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1273, allocations: 0 / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.941e-05/0.1274, allocations: 4 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.1274, allocations: 128 / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.1274, allocations: 8 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1274, allocations: 0 / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1274, allocations: 0 / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.1277, allocations: 320.2 kB / 487.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.523e-05/0.1277, allocations: 85.25 kB / 487.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.1278, allocations: 4 kB / 487.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.711e-05/0.1279, allocations: 7.984 kB / 487.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.933e-05/0.1279, allocations: 11.97 kB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.128, allocations: 8 kB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.797e-05/0.1281, allocations: 136.2 kB / 487.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1281, allocations: 0 / 487.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003115/0.1284, allocations: 19.94 kB / 487.4 MB, free: 13.46 MB / 366.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.0001466/0.1285, allocations: 107.2 kB / 487.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002693/0.1288, allocations: 139.2 kB / 487.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1288, allocations: 0 / 487.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.1289, allocations: 87.77 kB / 487.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.1293, allocations: 19.89 kB / 487.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005928/0.1299, allocations: 268.8 kB / 488 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.1302, allocations: 0.7002 MB / 488.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.227e-05/0.1302, allocations: 23.36 kB / 488.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1302, allocations: 4 kB / 488.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of Templates: time 0.003182/0.1334, allocations: 1.456 MB / 490.2 MB, free: 10.57 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