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.005241/0.005241, allocations: 96.69 kB / 15.73 MB, free: 6.031 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.001288/0.001288, allocations: 194.6 kB / 16.68 MB, free: 5.961 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1854/0.1854, allocations: 16.75 MB / 307.3 MB, free: 14.86 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 61.69 kB / 425.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1032, allocations: 53.48 MB / 479.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002011/0.1052, allocations: 1.063 MB / 480.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007969/0.1061, allocations: 388.8 kB / 480.8 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.1062, allocations: 2.25 kB / 480.8 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.1064, allocations: 51.64 kB / 480.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002703/0.1067, allocations: 49.39 kB / 480.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002763/0.107, allocations: 118.5 kB / 481 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003314/0.1073, allocations: 312.2 kB / 481.3 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.832e-05/0.1074, allocations: 33.55 kB / 481.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001633/0.1076, allocations: 144.2 kB / 481.5 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.738e-05/0.1077, allocations: 52.84 kB / 481.5 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.1077, allocations: 3.406 kB / 481.5 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.1079, allocations: 61.12 kB / 481.6 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.386e-05/0.108, allocations: 19.14 kB / 481.6 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.993e-05/0.108, allocations: 34.95 kB / 481.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002091/0.1082, allocations: 122.6 kB / 481.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1082, allocations: 0 / 481.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1082, allocations: 1.031 kB / 481.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.268e-06/0.1083, allocations: 0 / 481.8 MB, free: 9.094 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.0003948/0.1087, allocations: 429.2 kB / 482.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1087, allocations: 16.88 kB / 482.2 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.384e-05/0.1087, allocations: 41.91 kB / 482.2 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.196e-05/0.1088, allocations: 15.12 kB / 482.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.1089, allocations: 200 kB / 482.4 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.109, allocations: 11.41 kB / 482.5 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/0.109, allocations: 8.469 kB / 482.5 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.1092, allocations: 103.4 kB / 482.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1092, allocations: 3.938 kB / 482.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.1092, allocations: 5.422 kB / 482.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1092, allocations: 2.75 kB / 482.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.1093, allocations: 43.27 kB / 482.6 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005848/0.1099, allocations: 0.8252 MB / 483.4 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.1101, allocations: 53.53 kB / 483.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.341e-05/0.1101, allocations: 16.61 kB / 483.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.512e-05/0.1102, allocations: 2 kB / 483.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.845e-05/0.1102, allocations: 34.5 kB / 483.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.783e-06/0.1102, allocations: 3.984 kB / 483.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002297/0.1104, allocations: 126.1 kB / 483.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.1105, allocations: 78.86 kB / 483.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.1106, allocations: 169.1 kB / 483.9 MB, free: 6.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.788e-06/0.1106, allocations: 35.14 kB / 483.9 MB, free: 6.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.993e-05/0.1107, allocations: 113.9 kB / 484.1 MB, free: 6.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.1107, allocations: 18.31 kB / 484.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.66e-05/0.1107, allocations: 28.73 kB / 484.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.951e-05/0.1108, allocations: 326.5 kB / 484.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.879e-05/0.1109, allocations: 18.73 kB / 484.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.459e-05/0.1109, allocations: 57.84 kB / 484.5 MB, free: 6.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.111, allocations: 129.1 kB / 484.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.111, allocations: 0 / 484.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001745/0.1112, allocations: 148.1 kB / 484.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.1113, allocations: 36.11 kB / 484.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.1113, allocations: 5.469 kB / 484.8 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.1113, allocations: 6.719 kB / 484.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.759e-05/0.1114, allocations: 14.36 kB / 484.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.1114, allocations: 1.312 kB / 484.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.467e-05/0.1114, allocations: 15.55 kB / 484.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.1114, allocations: 7.469 kB / 484.9 MB, free: 6.043 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 7.683e-05/0.1115, allocations: 145.8 kB / 485 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.356e-05/0.1116, allocations: 18.11 kB / 485 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001584/0.1117, allocations: 125.3 kB / 485.1 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1117, allocations: 1.656 kB / 485.1 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1117, allocations: 0 / 485.1 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1118, allocations: 0 / 485.1 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.482e-05/0.1119, allocations: 192.6 kB / 485.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1119, allocations: 3.938 kB / 485.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.041e-05/0.1119, allocations: 2.25 kB / 485.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1119, allocations: 0 / 485.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.1119, allocations: 4.781 kB / 485.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1119, allocations: 5.375 kB / 485.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1119, allocations: 0 / 485.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001212/0.112, allocations: 126.6 kB / 485.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.606e-05/0.1121, allocations: 95.75 kB / 485.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.1121, allocations: 9.312 kB / 485.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.015e-05/0.1121, allocations: 1.375 kB / 485.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.373e-05/0.1122, allocations: 2.75 kB / 485.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-06/0.1122, allocations: 1.375 kB / 485.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.047e-05/0.1122, allocations: 136.5 kB / 485.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1123, allocations: 1.375 kB / 485.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002341/0.1125, allocations: 23.19 kB / 485.7 MB, free: 5.191 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.0003163/0.1128, allocations: 0.6729 MB / 486.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001705/0.113, allocations: 117.8 kB / 486.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.113, allocations: 0 / 486.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.218e-05/0.1131, allocations: 67.78 kB / 486.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.1133, allocations: 13.48 kB / 486.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.1147, allocations: 1.598 MB / 488.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001531/0.1149, allocations: 0.7027 MB / 488.9 MB, free: 2.203 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001011/0.115, allocations: 44.94 kB / 488.9 MB, free: 2.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.142e-05/0.1151, allocations: 39.77 kB / 489 MB, free: 2.148 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1151, allocations: 0 / 489 MB, free: 2.148 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02038/0.1355, allocations: 2.328 MB / 491.3 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.752/7.887, allocations: 15 kB / 491.3 MB, free: 0.6719 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