Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SingleTC.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: "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007752/0.007752, allocations: 98.05 kB / 15.73 MB, free: 6.043 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.001576/0.001577, allocations: 196.2 kB / 16.67 MB, free: 5.969 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.495/1.495, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.2137/0.2137, allocations: 16.76 MB / 307.3 MB, free: 14.86 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 69.25 kB / 425.9 MB, free: 37.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1239, allocations: 53.47 MB / 479.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002141/0.1261, allocations: 1.06 MB / 480.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008125/0.1269, allocations: 393.3 kB / 480.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.1271, allocations: 2.344 kB / 480.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.1273, allocations: 50.52 kB / 480.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002657/0.1275, allocations: 54.02 kB / 480.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002186/0.1278, allocations: 114.4 kB / 481 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.1281, allocations: 316.2 kB / 481.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.659e-05/0.1282, allocations: 32.92 kB / 481.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.1284, allocations: 147.8 kB / 481.5 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.659e-05/0.1285, allocations: 50 kB / 481.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.999e-05/0.1285, allocations: 3.375 kB / 481.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.1286, allocations: 65.28 kB / 481.6 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.674e-05/0.1287, allocations: 19.48 kB / 481.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.712e-05/0.1287, allocations: 29.91 kB / 481.6 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002082/0.129, allocations: 119.3 kB / 481.8 MB, free: 8.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.129, allocations: 0 / 481.8 MB, free: 8.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.129, allocations: 0 / 481.8 MB, free: 8.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.129, allocations: 5.125 kB / 481.8 MB, free: 8.961 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004667/0.1295, allocations: 436 kB / 482.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.1295, allocations: 13.58 kB / 482.2 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.914e-05/0.1296, allocations: 41.64 kB / 482.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.92e-05/0.1296, allocations: 14.66 kB / 482.3 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.1298, allocations: 196.6 kB / 482.4 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.1298, allocations: 7.844 kB / 482.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.1298, allocations: 7.938 kB / 482.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001844/0.13, allocations: 114.5 kB / 482.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.13, allocations: 0 / 482.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.1301, allocations: 1.719 kB / 482.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.1301, allocations: 1.812 kB / 482.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.86e-05/0.1302, allocations: 49.06 kB / 482.6 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005998/0.1308, allocations: 0.8237 MB / 483.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.1309, allocations: 43.3 kB / 483.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.689e-05/0.131, allocations: 28.09 kB / 483.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.131, allocations: 4 kB / 483.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.131, allocations: 36.19 kB / 483.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.203e-06/0.131, allocations: 0 / 483.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002495/0.1313, allocations: 118.7 kB / 483.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.1313, allocations: 80.48 kB / 483.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.1315, allocations: 166.9 kB / 483.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.328e-06/0.1315, allocations: 26.92 kB / 483.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.806e-05/0.1316, allocations: 117.9 kB / 484.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.498e-05/0.1316, allocations: 22.3 kB / 484.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-05/0.1316, allocations: 29.53 kB / 484.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.804e-05/0.1317, allocations: 321.6 kB / 484.4 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.52e-05/0.1317, allocations: 26.08 kB / 484.4 MB, free: 6.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.673e-05/0.1318, allocations: 50.94 kB / 484.5 MB, free: 6.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.1319, allocations: 131.9 kB / 484.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1319, allocations: 1.281 kB / 484.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001971/0.1321, allocations: 151.6 kB / 484.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.1322, allocations: 36.48 kB / 484.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1322, allocations: 5.281 kB / 484.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.1322, allocations: 6.781 kB / 484.8 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.872e-05/0.1323, allocations: 14.23 kB / 484.8 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1323, allocations: 1.531 kB / 484.8 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.161e-05/0.1323, allocations: 11.58 kB / 484.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.1324, allocations: 9.312 kB / 484.9 MB, free: 5.914 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (T1.firingCon,T1.fire_,T1.activation.NoTokens,T1.activation.active,T1.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 9.513e-05/0.1325, allocations: 148.3 kB / 485 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.228e-05/0.1325, allocations: 9.078 kB / 485 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001869/0.1327, allocations: 126.6 kB / 485.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1327, allocations: 7.984 kB / 485.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1327, allocations: 0.9688 kB / 485.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1327, allocations: 4.031 kB / 485.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001237/0.1329, allocations: 187.4 kB / 485.3 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1329, allocations: 0 / 485.3 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.053e-05/0.1329, allocations: 3.375 kB / 485.3 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.1329, allocations: 3.984 kB / 485.3 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.1329, allocations: 9 kB / 485.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1329, allocations: 1.188 kB / 485.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.1329, allocations: 4.188 kB / 485.3 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001427/0.1331, allocations: 130.8 kB / 485.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.185e-05/0.1331, allocations: 87.52 kB / 485.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/0.1331, allocations: 9.156 kB / 485.6 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.081e-05/0.1332, allocations: 1.531 kB / 485.6 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.364e-05/0.1332, allocations: 6.453 kB / 485.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-06/0.1332, allocations: 1.062 kB / 485.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.949e-05/0.1333, allocations: 125.9 kB / 485.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1333, allocations: 0 / 485.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002394/0.1336, allocations: 32.75 kB / 485.7 MB, free: 5.062 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (T1.fire,T1.activation.active,T1.activation.NoTokens) * Number of discrete states: 2 (T1.activation.active,T1.activation.NoTokens) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0003818/0.134, allocations: 0.6733 MB / 486.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001731/0.1341, allocations: 112.8 kB / 486.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1342, allocations: 0 / 486.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.997e-05/0.1342, allocations: 72.08 kB / 486.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.1345, allocations: 12.19 kB / 486.6 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.136, allocations: 1.607 MB / 488.2 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001567/0.1362, allocations: 0.7019 MB / 488.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.1363, allocations: 38.39 kB / 488.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.224e-05/0.1363, allocations: 42.22 kB / 489 MB, free: 2.016 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1363, allocations: 0 / 489 MB, free: 2.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.1551, allocations: 2.334 MB / 491.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.168/8.323, allocations: 3.938 kB / 491.3 MB, free: 0.6289 MB / 350.1 MB (rm -f PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; mkfifo PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ConTest.SingleTC.pipe >> ../files/PNlib_PNlib.Examples.ConTest.SingleTC.sim & python3 -m fmpy simulate --output-file PNlib_PNlib.Examples.ConTest.SingleTC_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PNlib_PNlib_Examples_ConTest_SingleTC.fmu > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.csv","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches