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.001164/0.001164, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001546/0.001546, allocations: 197.6 kB / 16.14 MB, free: 6.66 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.252/1.252, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 3.352/3.352, allocations: 16.76 MB / 306.7 MB, free: 15.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 60.12 kB / 371.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.3637, allocations: 53.46 MB / 424.5 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002163/0.3659, allocations: 1.147 MB / 425.7 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007415/0.3666, allocations: 426.1 kB / 426.1 MB, free: 38.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.447e-05/0.3667, allocations: 10.66 kB / 426.1 MB, free: 38.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.3668, allocations: 42.53 kB / 426.2 MB, free: 38.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001608/0.367, allocations: 33.52 kB / 426.2 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001656/0.3672, allocations: 109.9 kB / 426.3 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002052/0.3674, allocations: 270.4 kB / 426.6 MB, free: 38.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.963e-05/0.3675, allocations: 21.75 kB / 426.6 MB, free: 38.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.594e-05/0.3676, allocations: 120.5 kB / 426.7 MB, free: 38.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.206e-05/0.3676, allocations: 52.67 kB / 426.7 MB, free: 38.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.159e-05/0.3677, allocations: 3.5 kB / 426.8 MB, free: 38.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.341e-05/0.3678, allocations: 54.25 kB / 426.8 MB, free: 38.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.154e-05/0.3678, allocations: 22.16 kB / 426.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.28e-05/0.3679, allocations: 37.94 kB / 426.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.368, allocations: 111.7 kB / 427 MB, free: 38.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.368, allocations: 0 / 427 MB, free: 38.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.81e-07/0.368, allocations: 2.375 kB / 427 MB, free: 38.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.368, allocations: 0 / 427 MB, free: 38.45 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.0003676/0.3684, allocations: 429.2 kB / 427.4 MB, free: 38.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.3684, allocations: 11.78 kB / 427.4 MB, free: 38.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.092e-05/0.3685, allocations: 33.69 kB / 427.4 MB, free: 37.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.764e-05/0.3685, allocations: 17.84 kB / 427.5 MB, free: 37.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.3687, allocations: 201.2 kB / 427.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.3687, allocations: 7 kB / 427.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.609e-05/0.3687, allocations: 15.25 kB / 427.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.3689, allocations: 104 kB / 427.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.3689, allocations: 0 / 427.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.3689, allocations: 2.531 kB / 427.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3689, allocations: 0 / 427.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.183e-05/0.369, allocations: 53.34 kB / 427.8 MB, free: 37.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005426/0.3696, allocations: 0.7363 MB / 428.6 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.3697, allocations: 46.11 kB / 428.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.282e-05/0.3698, allocations: 17.27 kB / 428.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.442e-05/0.3698, allocations: 2.75 kB / 428.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.3698, allocations: 33.89 kB / 428.7 MB, free: 36.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.213e-06/0.3698, allocations: 0 / 428.7 MB, free: 36.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002088/0.37, allocations: 131.2 kB / 428.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.596e-05/0.3701, allocations: 79.73 kB / 428.9 MB, free: 36.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.3702, allocations: 168.9 kB / 429 MB, free: 36.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.3702, allocations: 25.7 kB / 429.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/0.3703, allocations: 114.9 kB / 429.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.351e-05/0.3703, allocations: 17.34 kB / 429.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.185e-05/0.3704, allocations: 34.27 kB / 429.2 MB, free: 36.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.281e-05/0.3705, allocations: 329.6 kB / 429.5 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.485e-05/0.3705, allocations: 24.59 kB / 429.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.823e-05/0.3706, allocations: 47.97 kB / 429.6 MB, free: 36.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001232/0.3707, allocations: 129.1 kB / 429.7 MB, free: 36.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3708, allocations: 6.969 kB / 429.7 MB, free: 36.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001881/0.3709, allocations: 138.3 kB / 429.9 MB, free: 35.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.26e-05/0.371, allocations: 32.11 kB / 429.9 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.371, allocations: 7.188 kB / 429.9 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.371, allocations: 0 / 429.9 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.198e-05/0.3711, allocations: 20.91 kB / 429.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.3711, allocations: 0 / 429.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.029e-05/0.3711, allocations: 12.34 kB / 430 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.3712, allocations: 10.39 kB / 430 MB, free: 35.89 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 0.0001084/0.3713, allocations: 152.6 kB / 430.1 MB, free: 35.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.233e-05/0.3713, allocations: 13.53 kB / 430.1 MB, free: 35.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001771/0.3715, allocations: 129.6 kB / 430.3 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3715, allocations: 0 / 430.3 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3715, allocations: 0 / 430.3 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3715, allocations: 0 / 430.3 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001279/0.3717, allocations: 189.3 kB / 430.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3717, allocations: 0 / 430.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.779e-05/0.3717, allocations: 6.719 kB / 430.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3717, allocations: 3 kB / 430.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.3717, allocations: 7.188 kB / 430.5 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3717, allocations: 0 / 430.5 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3717, allocations: 0 / 430.5 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/0.3719, allocations: 134 kB / 430.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.914e-05/0.3719, allocations: 87.86 kB / 430.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.3719, allocations: 6.406 kB / 430.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.962e-05/0.372, allocations: 7.25 kB / 430.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.76e-05/0.372, allocations: 6.938 kB / 430.7 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.372, allocations: 6.312 kB / 430.7 MB, free: 35.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.307e-05/0.3721, allocations: 126.9 kB / 430.8 MB, free: 35.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3721, allocations: 0 / 430.8 MB, free: 35.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002098/0.3723, allocations: 22.91 kB / 430.8 MB, free: 35.16 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.0003028/0.3726, allocations: 0.6771 MB / 431.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001421/0.3728, allocations: 116.4 kB / 431.6 MB, free: 34.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3728, allocations: 0 / 431.6 MB, free: 34.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.271e-05/0.3728, allocations: 72.62 kB / 431.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.3731, allocations: 11.98 kB / 431.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.3745, allocations: 1.605 MB / 433.3 MB, free: 33.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.3747, allocations: 0.6986 MB / 434 MB, free: 32.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.627e-05/0.3748, allocations: 46.69 kB / 434.1 MB, free: 32.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.797e-05/0.3749, allocations: 36.34 kB / 434.1 MB, free: 32.4 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3749, allocations: 0 / 434.1 MB, free: 32.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1283/0.5032, allocations: 2.162 MB / 436.3 MB, free: 32.08 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001417/0.5034, allocations: 163.3 kB / 436.4 MB, free: 31.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.612/2.115, allocations: 3.938 kB / 436.4 MB, free: 31.82 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","../files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches