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 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.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.001332/0.001332, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.001693/0.001693, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.2378/0.2378, allocations: 16.88 MB / 308 MB, free: 15.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003054, allocations: 8 kB / 373.1 MB, free: 3.234 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3265, allocations: 54.5 MB / 427.6 MB, free: 38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001031/0.3276, allocations: 0.7652 MB / 428.3 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000642/0.3282, allocations: 397.5 kB / 428.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.081e-05/0.3283, allocations: 0 / 428.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.3285, allocations: 43.38 kB / 428.8 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.3287, allocations: 30.81 kB / 428.8 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.3289, allocations: 90.09 kB / 428.9 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000228/0.3291, allocations: 249.4 kB / 429.1 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.813e-05/0.3292, allocations: 28.39 kB / 429.2 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.3293, allocations: 119.7 kB / 429.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.268e-05/0.3294, allocations: 48.03 kB / 429.3 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.507e-05/0.3294, allocations: 0 / 429.3 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.3295, allocations: 53.64 kB / 429.4 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.943e-05/0.3296, allocations: 24.14 kB / 429.4 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.869e-05/0.3296, allocations: 36.33 kB / 429.4 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.3298, allocations: 82.86 kB / 429.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3298, allocations: 0 / 429.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3298, allocations: 0 / 429.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.3298, allocations: 3.312 kB / 429.5 MB, free: 37.71 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.0003572/0.3301, allocations: 411.9 kB / 429.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.3302, allocations: 9.062 kB / 429.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.282e-05/0.3302, allocations: 43 kB / 430 MB, free: 37.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.135e-05/0.3303, allocations: 11.67 kB / 430 MB, free: 37.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.3304, allocations: 198.9 kB / 430.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.3305, allocations: 2.75 kB / 430.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.279e-05/0.3305, allocations: 13.22 kB / 430.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001663/0.3307, allocations: 111.5 kB / 430.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.3307, allocations: 0 / 430.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.3307, allocations: 3 kB / 430.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.3307, allocations: 6.75 kB / 430.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.068e-05/0.3308, allocations: 47.19 kB / 430.4 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000571/0.3314, allocations: 0.7363 MB / 431.1 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001532/0.3315, allocations: 56.42 kB / 431.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.326e-05/0.3316, allocations: 20.61 kB / 431.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.3316, allocations: 0 / 431.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.511e-05/0.3316, allocations: 34.28 kB / 431.2 MB, free: 36.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.42e-07/0.3316, allocations: 0 / 431.2 MB, free: 36.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002369/0.3319, allocations: 123.2 kB / 431.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.3319, allocations: 80.44 kB / 431.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.332, allocations: 174.4 kB / 431.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.967e-06/0.3321, allocations: 25.7 kB / 431.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.98e-05/0.3321, allocations: 116 kB / 431.7 MB, free: 35.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.307e-05/0.3321, allocations: 23 kB / 431.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-06/0.3321, allocations: 0 / 431.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.695e-05/0.3322, allocations: 328.7 kB / 432 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.776e-05/0.3322, allocations: 19.69 kB / 432.1 MB, free: 35.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.682e-05/0.3323, allocations: 54.58 kB / 432.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.672e-05/0.3324, allocations: 54.17 kB / 432.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3324, allocations: 0 / 432.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001818/0.3326, allocations: 141.1 kB / 432.3 MB, free: 35.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.3326, allocations: 36.77 kB / 432.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3326, allocations: 2.5 kB / 432.4 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.3326, allocations: 2.797 kB / 432.4 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.722e-05/0.3327, allocations: 21.12 kB / 432.4 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.3327, allocations: 4.938 kB / 432.4 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.235e-05/0.3327, allocations: 8.906 kB / 432.4 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.3328, allocations: 9.203 kB / 432.4 MB, free: 35.26 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.active,T1.activation.NoTokens,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.602e-05/0.3329, allocations: 158.9 kB / 432.6 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.048e-05/0.3329, allocations: 17.03 kB / 432.6 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002448/0.3332, allocations: 148.5 kB / 432.7 MB, free: 35.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3332, allocations: 0 / 432.7 MB, free: 35.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3332, allocations: 0 / 432.7 MB, free: 35.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3332, allocations: 0 / 432.7 MB, free: 35.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.3333, allocations: 204.1 kB / 432.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3333, allocations: 3.938 kB / 432.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.925e-05/0.3333, allocations: 2.562 kB / 432.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3334, allocations: 0 / 432.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.3334, allocations: 2.438 kB / 432.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3334, allocations: 0 / 432.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3334, allocations: 0 / 432.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.3335, allocations: 137.7 kB / 433.1 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.024e-05/0.3336, allocations: 86.83 kB / 433.1 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.076e-05/0.3336, allocations: 7.062 kB / 433.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.319e-05/0.3336, allocations: 0 / 433.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.51e-05/0.3336, allocations: 10.03 kB / 433.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.3336, allocations: 2.781 kB / 433.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.405e-05/0.3337, allocations: 132.3 kB / 433.3 MB, free: 34.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3337, allocations: 3.938 kB / 433.3 MB, free: 34.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002241/0.334, allocations: 32.25 kB / 433.3 MB, free: 34.52 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003265/0.3343, allocations: 0.6848 MB / 434 MB, free: 33.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001443/0.3344, allocations: 108.6 kB / 434.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3345, allocations: 0 / 434.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.309e-05/0.3345, allocations: 71.44 kB / 434.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001836/0.3347, allocations: 13.47 kB / 434.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008731/0.3356, allocations: 0.7108 MB / 434.9 MB, free: 33.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.3357, allocations: 0.7072 MB / 435.6 MB, free: 32.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.623e-05/0.3358, allocations: 49.38 kB / 435.7 MB, free: 32.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.132e-05/0.3359, allocations: 46.16 kB / 435.7 MB, free: 32.61 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3359, allocations: 0 / 435.7 MB, free: 32.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01231/0.3482, allocations: 2.31 MB / 438 MB, free: 32.37 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/0.3484, allocations: 151.6 kB / 438.2 MB, free: 32.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.102, allocations: 10.95 kB / 438.2 MB, free: 32.12 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result PNlib_PNlib.Examples.ConTest.SingleTC_res.mat does not exist to compare? outputFormat=mat