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.004705/0.004705, allocations: 96.91 kB / 15.73 MB, free: 6.484 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.001249/0.001249, allocations: 192 kB / 16.67 MB, free: 6.391 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1708/0.1708, allocations: 16.75 MB / 307.3 MB, free: 14.82 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 72.12 kB / 425.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09084/0.09279, allocations: 53.47 MB / 479.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.00188/0.09472, allocations: 1.056 MB / 480.4 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006991/0.09544, allocations: 396.2 kB / 480.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.142e-05/0.09553, allocations: 6.188 kB / 480.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.09569, allocations: 51.55 kB / 480.8 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002354/0.09594, allocations: 43.53 kB / 480.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001974/0.09614, allocations: 119 kB / 481 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002771/0.09643, allocations: 319.4 kB / 481.3 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.719e-05/0.09649, allocations: 29.23 kB / 481.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.09662, allocations: 143.9 kB / 481.5 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.134e-05/0.09671, allocations: 50 kB / 481.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.647e-05/0.09673, allocations: 3.562 kB / 481.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.09686, allocations: 61.03 kB / 481.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.643e-05/0.09694, allocations: 23.61 kB / 481.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.996e-05/0.09699, allocations: 38.89 kB / 481.6 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001831/0.09718, allocations: 118.5 kB / 481.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.09719, allocations: 0 / 481.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.0972, allocations: 0 / 481.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.09721, allocations: 1.438 kB / 481.8 MB, free: 9.027 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.0004056/0.09762, allocations: 429.5 kB / 482.2 MB, free: 8.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.09767, allocations: 13.86 kB / 482.2 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.713e-05/0.0977, allocations: 40.98 kB / 482.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.837e-05/0.09774, allocations: 14.75 kB / 482.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.09789, allocations: 201.1 kB / 482.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.09792, allocations: 11.78 kB / 482.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.559e-05/0.09794, allocations: 4.25 kB / 482.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001571/0.0981, allocations: 109.6 kB / 482.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.09812, allocations: 0 / 482.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.09813, allocations: 6.438 kB / 482.6 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.09815, allocations: 5.094 kB / 482.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.954e-05/0.09824, allocations: 51.38 kB / 482.6 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005349/0.09878, allocations: 0.8129 MB / 483.4 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.09895, allocations: 59.16 kB / 483.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.127e-05/0.09899, allocations: 17.02 kB / 483.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.09901, allocations: 0 / 483.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.09903, allocations: 36.25 kB / 483.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.09904, allocations: 0 / 483.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002131/0.09926, allocations: 118.9 kB / 483.7 MB, free: 7.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.09929, allocations: 86.88 kB / 483.8 MB, free: 6.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.09941, allocations: 168.2 kB / 483.9 MB, free: 6.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.835e-06/0.09942, allocations: 27.11 kB / 483.9 MB, free: 6.828 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.328e-05/0.09947, allocations: 113.1 kB / 484.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.09949, allocations: 24.05 kB / 484.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.09954, allocations: 31.95 kB / 484.1 MB, free: 6.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.49e-05/0.0996, allocations: 325.5 kB / 484.4 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.975e-05/0.09964, allocations: 15 kB / 484.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.659e-05/0.0997, allocations: 53.91 kB / 484.5 MB, free: 6.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.013e-05/0.09979, allocations: 128.9 kB / 484.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.0998, allocations: 0 / 484.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000155/0.09996, allocations: 153.3 kB / 484.8 MB, free: 6.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.1, allocations: 38.86 kB / 484.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1, allocations: 3.938 kB / 484.8 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.1, allocations: 1.781 kB / 484.8 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.411e-05/0.1001, allocations: 18.73 kB / 484.8 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.1001, allocations: 1.812 kB / 484.8 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.699e-05/0.1001, allocations: 12.08 kB / 484.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.1002, allocations: 5.531 kB / 484.8 MB, free: 5.992 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.463e-05/0.1002, allocations: 155.6 kB / 485 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.107e-05/0.1003, allocations: 14.19 kB / 485 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001505/0.1004, allocations: 121.2 kB / 485.1 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1004, allocations: 7.031 kB / 485.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.1005, allocations: 0 / 485.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1005, allocations: 0 / 485.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.772e-05/0.1006, allocations: 185.9 kB / 485.3 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1006, allocations: 3.938 kB / 485.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.93e-05/0.1006, allocations: 7.234 kB / 485.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1006, allocations: 0 / 485.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.1006, allocations: 9.656 kB / 485.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1006, allocations: 1.594 kB / 485.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1006, allocations: 0 / 485.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001134/0.1007, allocations: 129 kB / 485.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.284e-05/0.1008, allocations: 87.77 kB / 485.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.1008, allocations: 6.688 kB / 485.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.874e-05/0.1008, allocations: 1.375 kB / 485.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/0.1008, allocations: 9.359 kB / 485.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-06/0.1009, allocations: 5.375 kB / 485.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.93e-05/0.1009, allocations: 125.9 kB / 485.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1009, allocations: 0 / 485.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000216/0.1012, allocations: 24.56 kB / 485.7 MB, free: 5.145 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.0002994/0.1015, allocations: 0.6807 MB / 486.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001612/0.1016, allocations: 113.6 kB / 486.5 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1017, allocations: 0 / 486.5 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.931e-05/0.1017, allocations: 71.77 kB / 486.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/0.1019, allocations: 8.125 kB / 486.6 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.1032, allocations: 1.606 MB / 488.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001317/0.1033, allocations: 0.7029 MB / 488.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.779e-05/0.1034, allocations: 45.44 kB / 488.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.636e-05/0.1035, allocations: 34.89 kB / 489 MB, free: 2.094 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1035, allocations: 4 kB / 489 MB, free: 2.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1396/0.2431, allocations: 2.336 MB / 491.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.99/8.233, allocations: 11.36 kB / 491.3 MB, free: 0.6523 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 & /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