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.0009593/0.0009594, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007711/0.007711, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.375/1.375, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1919/0.1919, allocations: 16.73 MB / 308.2 MB, free: 15.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003356/0.0003358, allocations: 8 kB / 373.5 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2863, allocations: 54.47 MB / 428 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.0009594/0.2873, allocations: 0.8047 MB / 428.8 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006964/0.288, allocations: 422 kB / 429.2 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.002e-05/0.2881, allocations: 6.906 kB / 429.2 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.2882, allocations: 38.61 kB / 429.3 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000188/0.2884, allocations: 30.91 kB / 429.3 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000169/0.2886, allocations: 110.2 kB / 429.4 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002081/0.2888, allocations: 272.2 kB / 429.7 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.931e-05/0.2889, allocations: 24.66 kB / 429.7 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.486e-05/0.289, allocations: 118.4 kB / 429.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.28e-05/0.2891, allocations: 47.75 kB / 429.8 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.247e-05/0.2891, allocations: 3.938 kB / 429.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.935e-05/0.2892, allocations: 55.38 kB / 429.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.802e-05/0.2893, allocations: 28.84 kB / 429.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.949e-05/0.2893, allocations: 54.05 kB / 430 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.2894, allocations: 114 kB / 430.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.2895, allocations: 0 / 430.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2895, allocations: 0 / 430.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.2895, allocations: 3.5 kB / 430.1 MB, free: 37.77 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.0003136/0.2898, allocations: 414.1 kB / 430.5 MB, free: 37.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.2898, allocations: 9.938 kB / 430.5 MB, free: 37.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.171e-05/0.2899, allocations: 38.67 kB / 430.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.378e-05/0.2899, allocations: 14.91 kB / 430.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.29, allocations: 205.8 kB / 430.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.2901, allocations: 10.56 kB / 430.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/0.2901, allocations: 2.969 kB / 430.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001595/0.2903, allocations: 113.1 kB / 430.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.2903, allocations: 1.594 kB / 430.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.2903, allocations: 6.344 kB / 430.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.2903, allocations: 0 / 430.9 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.823e-05/0.2904, allocations: 50.36 kB / 430.9 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005148/0.2909, allocations: 0.7345 MB / 431.7 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.2911, allocations: 50.84 kB / 431.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.171e-05/0.2911, allocations: 20.23 kB / 431.8 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.488e-05/0.2911, allocations: 0 / 431.8 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.405e-05/0.2911, allocations: 36.78 kB / 431.8 MB, free: 36.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 8.22e-07/0.2912, allocations: 0 / 431.8 MB, free: 36.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002243/0.2914, allocations: 119.5 kB / 431.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.399e-05/0.2914, allocations: 83.55 kB / 432 MB, free: 36.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.2915, allocations: 172.8 kB / 432.2 MB, free: 35.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.075e-06/0.2915, allocations: 25.7 kB / 432.2 MB, free: 35.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.511e-05/0.2916, allocations: 117.8 kB / 432.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.194e-05/0.2916, allocations: 18.36 kB / 432.3 MB, free: 35.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.2916, allocations: 19.17 kB / 432.3 MB, free: 35.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.39e-05/0.2917, allocations: 324 kB / 432.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.011e-05/0.2917, allocations: 23.14 kB / 432.7 MB, free: 35.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.41e-05/0.2918, allocations: 57 kB / 432.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.684e-05/0.2919, allocations: 128.7 kB / 432.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2919, allocations: 0 / 432.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001778/0.2921, allocations: 147.3 kB / 433 MB, free: 35.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.2921, allocations: 31.55 kB / 433 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.2921, allocations: 6.875 kB / 433 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.2921, allocations: 0 / 433 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.941e-05/0.2922, allocations: 18.92 kB / 433.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.2922, allocations: 2.969 kB / 433.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.983e-05/0.2922, allocations: 10.38 kB / 433.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.2923, allocations: 9.812 kB / 433.1 MB, free: 35.21 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.456e-05/0.2923, allocations: 158.4 kB / 433.2 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.2924, allocations: 9.875 kB / 433.2 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001539/0.2925, allocations: 123.1 kB / 433.4 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.2926, allocations: 0 / 433.4 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2926, allocations: 6.375 kB / 433.4 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.2926, allocations: 0 / 433.4 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.288e-05/0.2927, allocations: 188.6 kB / 433.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2927, allocations: 0 / 433.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.774e-05/0.2927, allocations: 2.969 kB / 433.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2927, allocations: 256 / 433.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.2927, allocations: 8.688 kB / 433.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-06/0.2927, allocations: 4 kB / 433.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2927, allocations: 2.938 kB / 433.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.2929, allocations: 130.1 kB / 433.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.745e-05/0.2929, allocations: 89.62 kB / 433.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.2929, allocations: 6.969 kB / 433.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.959e-05/0.2929, allocations: 0 / 433.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.709e-05/0.293, allocations: 8.922 kB / 433.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.293, allocations: 6.906 kB / 433.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.137e-05/0.2931, allocations: 126.4 kB / 433.9 MB, free: 34.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2931, allocations: 3.938 kB / 433.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.2933, allocations: 22.19 kB / 434 MB, free: 34.48 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.0003303/0.2936, allocations: 0.6877 MB / 434.6 MB, free: 33.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000146/0.2938, allocations: 114.8 kB / 434.8 MB, free: 33.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2938, allocations: 0 / 434.8 MB, free: 33.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.155e-05/0.2938, allocations: 73.7 kB / 434.8 MB, free: 33.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001782/0.294, allocations: 8.875 kB / 434.8 MB, free: 33.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.2953, allocations: 1.593 MB / 436.4 MB, free: 32.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.2955, allocations: 0.7098 MB / 437.1 MB, free: 31.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.592e-05/0.2956, allocations: 45.09 kB / 437.2 MB, free: 31.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.905e-05/0.2956, allocations: 37.95 kB / 437.2 MB, free: 31.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2956, allocations: 3.938 kB / 437.2 MB, free: 31.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01051/0.3062, allocations: 2.187 MB / 439.4 MB, free: 31.49 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001159/0.3063, allocations: 164.6 kB / 439.6 MB, free: 31.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/2.035, allocations: 0 / 439.6 MB, free: 31.24 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