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.009725/0.009725, allocations: 103.1 kB / 15.73 MB, free: 6.051 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.001571/0.001571, allocations: 193.5 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.463/1.463, allocations: 222.9 MB / 240.4 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.09688/0.09688, allocations: 16.73 MB / 307.3 MB, free: 14.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 63.91 kB / 425.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1014, allocations: 53.49 MB / 479.3 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002685/0.1041, allocations: 1.05 MB / 480.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.1053, allocations: 391.1 kB / 480.7 MB, free: 4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.1055, allocations: 8 kB / 480.7 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.1058, allocations: 47.64 kB / 480.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003282/0.1061, allocations: 43.72 kB / 480.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003427/0.1065, allocations: 115.8 kB / 480.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004196/0.1069, allocations: 323.3 kB / 481.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.318e-05/0.107, allocations: 24.39 kB / 481.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.1072, allocations: 147.6 kB / 481.4 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.1073, allocations: 51.52 kB / 481.5 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.821e-05/0.1073, allocations: 4 kB / 481.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001432/0.1075, allocations: 59.89 kB / 481.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.86e-05/0.1076, allocations: 23.86 kB / 481.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.267e-05/0.1076, allocations: 43.72 kB / 481.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.1079, allocations: 111.6 kB / 481.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1079, allocations: 0 / 481.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1079, allocations: 0 / 481.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.1079, allocations: 0 / 481.7 MB, free: 3.012 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.0005541/0.1085, allocations: 428.5 kB / 482.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1085, allocations: 15.88 kB / 482.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.344e-05/0.1086, allocations: 42.69 kB / 482.2 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.1086, allocations: 16.75 kB / 482.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.1088, allocations: 200.6 kB / 482.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.1089, allocations: 12.12 kB / 482.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.1089, allocations: 4 kB / 482.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.1091, allocations: 108.6 kB / 482.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.1092, allocations: 7.984 kB / 482.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.1092, allocations: 4 kB / 482.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.1092, allocations: 3.984 kB / 482.5 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001043/0.1093, allocations: 43.92 kB / 482.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008481/0.1102, allocations: 0.8198 MB / 483.4 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001713/0.1103, allocations: 46.56 kB / 483.4 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.618e-05/0.1104, allocations: 17.05 kB / 483.5 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.1104, allocations: 4 kB / 483.5 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.1105, allocations: 42.5 kB / 483.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.814e-06/0.1105, allocations: 0 / 483.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002757/0.1107, allocations: 123.1 kB / 483.6 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.1108, allocations: 77.11 kB / 483.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.111, allocations: 170.4 kB / 483.9 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.111, allocations: 25.7 kB / 483.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.114e-05/0.1111, allocations: 115.9 kB / 484 MB, free: 436 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.748e-05/0.1111, allocations: 15.8 kB / 484 MB, free: 420 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-05/0.1111, allocations: 37.61 kB / 484.1 MB, free: 376 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1113, allocations: 326.8 kB / 484.4 MB, free: 40 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.532e-05/0.1113, allocations: 15.98 kB / 484.4 MB, free: 24 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.026e-05/0.1114, allocations: 56.45 kB / 484.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.1116, allocations: 135.6 kB / 484.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1116, allocations: 0 / 484.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002004/0.1118, allocations: 135.2 kB / 484.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.713e-05/0.1118, allocations: 29.7 kB / 484.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.1118, allocations: 7.938 kB / 484.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1119, allocations: 3.938 kB / 484.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.039e-05/0.1119, allocations: 19.98 kB / 484.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.1119, allocations: 12.12 kB / 484.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.514e-05/0.112, allocations: 12.09 kB / 484.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.112, allocations: 4 kB / 484.8 MB, free: 15.55 MB / 366.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 0.0001235/0.1121, allocations: 156.4 kB / 484.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.567e-05/0.1122, allocations: 15.84 kB / 485 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001914/0.1124, allocations: 117.6 kB / 485.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1124, allocations: 0 / 485.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.1124, allocations: 0 / 485.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1124, allocations: 0 / 485.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001518/0.1126, allocations: 201.5 kB / 485.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1126, allocations: 0 / 485.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.143e-05/0.1126, allocations: 4 kB / 485.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1126, allocations: 0 / 485.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.1127, allocations: 3.938 kB / 485.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1127, allocations: 0 / 485.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1127, allocations: 0 / 485.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001662/0.1128, allocations: 130.7 kB / 485.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.58e-05/0.1129, allocations: 96.94 kB / 485.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/0.1129, allocations: 3.938 kB / 485.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.074e-05/0.113, allocations: 4 kB / 485.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.605e-05/0.113, allocations: 4 kB / 485.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.113, allocations: 4 kB / 485.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001014/0.1131, allocations: 127.8 kB / 485.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1131, allocations: 0 / 485.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002292/0.1133, allocations: 23.91 kB / 485.7 MB, free: 14.56 MB / 366.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.0004822/0.1138, allocations: 0.692 MB / 486.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001974/0.114, allocations: 111.3 kB / 486.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.114, allocations: 3.938 kB / 486.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.506e-05/0.1141, allocations: 71.41 kB / 486.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002467/0.1144, allocations: 12 kB / 486.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.116, allocations: 1.574 MB / 488.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.1163, allocations: 0.7117 MB / 488.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.636e-05/0.1164, allocations: 52.23 kB / 488.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.989e-05/0.1164, allocations: 35.36 kB / 488.9 MB, free: 11.1 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1164, allocations: 0 / 488.9 MB, free: 11.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01733/0.1338, allocations: 2.362 MB / 491.3 MB, free: 8.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.399/7.533, allocations: 3.594 kB / 491.3 MB, free: 8.797 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PNlib_PNlib.Examples.ConTest.SingleTC_res.mat --tempDir=temp_PNlib_PNlib_Examples_ConTest_SingleTC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_ConTest_SingleTC.fmu > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.mat","/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