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: translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001102/0.001103, allocations: 191 kB / 16.25 MB, free: 6.621 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.473/1.473, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1848/0.1848, allocations: 16.76 MB / 306.8 MB, free: 15.02 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 59.91 kB / 371.1 MB, free: 3.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3114, allocations: 53.46 MB / 424.6 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.003047/0.3145, allocations: 1.151 MB / 425.7 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.3156, allocations: 407.2 kB / 426.1 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.3157, allocations: 1.75 kB / 426.1 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002198/0.3159, allocations: 41.58 kB / 426.2 MB, free: 38.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000345/0.3163, allocations: 37.7 kB / 426.2 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003194/0.3166, allocations: 105.8 kB / 426.3 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003995/0.317, allocations: 316 kB / 426.6 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.113e-05/0.3171, allocations: 23.44 kB / 426.7 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.3173, allocations: 150.5 kB / 426.8 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.3175, allocations: 52.81 kB / 426.8 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.3175, allocations: 6.844 kB / 426.9 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.3177, allocations: 64.67 kB / 426.9 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.538e-05/0.3178, allocations: 25.05 kB / 426.9 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.367e-05/0.3178, allocations: 29.25 kB / 427 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002157/0.318, allocations: 112 kB / 427.1 MB, free: 38.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3181, allocations: 2.625 kB / 427.1 MB, free: 38.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.3181, allocations: 0 / 427.1 MB, free: 38.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.3181, allocations: 0 / 427.1 MB, free: 38.75 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.0004878/0.3186, allocations: 429.5 kB / 427.5 MB, free: 38.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3186, allocations: 17.17 kB / 427.5 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.187e-05/0.3187, allocations: 19.45 kB / 427.5 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.3189, allocations: 202.8 kB / 427.7 MB, free: 38.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.3189, allocations: 2.75 kB / 427.7 MB, free: 38.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.923e-05/0.319, allocations: 15.45 kB / 427.8 MB, free: 38.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002264/0.3192, allocations: 107.6 kB / 427.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3192, allocations: 0 / 427.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.3192, allocations: 6.188 kB / 427.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3193, allocations: 2.5 kB / 427.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.3194, allocations: 43.8 kB / 427.9 MB, free: 38.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007022/0.3201, allocations: 0.7306 MB / 428.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002019/0.3203, allocations: 47.83 kB / 428.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.872e-05/0.3204, allocations: 24.64 kB / 428.7 MB, free: 37.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.3204, allocations: 2.875 kB / 428.7 MB, free: 37.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.3205, allocations: 34.56 kB / 428.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/0.3205, allocations: 0 / 428.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003257/0.3208, allocations: 121.5 kB / 428.9 MB, free: 37.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.3208, allocations: 81.8 kB / 428.9 MB, free: 37.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.321, allocations: 174 kB / 429.1 MB, free: 36.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.3211, allocations: 26.64 kB / 429.1 MB, free: 36.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.509e-05/0.3211, allocations: 113.7 kB / 429.3 MB, free: 36.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.3212, allocations: 20.34 kB / 429.3 MB, free: 36.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.721e-05/0.3213, allocations: 35.08 kB / 429.3 MB, free: 36.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.991e-05/0.3214, allocations: 321.9 kB / 429.6 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.087e-05/0.3214, allocations: 23.89 kB / 429.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.093e-05/0.3215, allocations: 55.06 kB / 429.7 MB, free: 36.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.3217, allocations: 137.7 kB / 429.8 MB, free: 36.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3217, allocations: 2.938 kB / 429.8 MB, free: 36.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002421/0.3219, allocations: 138.7 kB / 430 MB, free: 36.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.322, allocations: 31.14 kB / 430 MB, free: 36.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.322, allocations: 0 / 430 MB, free: 36.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.322, allocations: 6.781 kB / 430 MB, free: 36.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.399e-05/0.3221, allocations: 18.3 kB / 430 MB, free: 36.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.3221, allocations: 6.812 kB / 430 MB, free: 36.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.364e-05/0.3222, allocations: 6.812 kB / 430 MB, free: 36.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.3222, allocations: 9.031 kB / 430.1 MB, free: 36.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 0.0001285/0.3223, allocations: 153 kB / 430.2 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.072e-05/0.3224, allocations: 13.34 kB / 430.2 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002339/0.3226, allocations: 123.7 kB / 430.3 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3227, allocations: 0 / 430.3 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.3227, allocations: 0 / 430.3 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.3227, allocations: 10.16 kB / 430.3 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001498/0.3228, allocations: 186.1 kB / 430.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3229, allocations: 2.844 kB / 430.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.327e-05/0.3229, allocations: 2.969 kB / 430.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.093e-06/0.3229, allocations: 0 / 430.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.3229, allocations: 3.938 kB / 430.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3229, allocations: 0 / 430.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3229, allocations: 2.844 kB / 430.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001747/0.3231, allocations: 132.2 kB / 430.7 MB, free: 35.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.2e-05/0.3232, allocations: 87.86 kB / 430.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.3232, allocations: 10.16 kB / 430.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.098e-05/0.3233, allocations: 0 / 430.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.022e-05/0.3233, allocations: 10.11 kB / 430.8 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.3233, allocations: 2.938 kB / 430.8 MB, free: 35.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.986e-05/0.3234, allocations: 134.3 kB / 430.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3234, allocations: 0 / 430.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003966/0.3238, allocations: 23.16 kB / 430.9 MB, free: 35.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.0001636/0.324, allocations: 120.4 kB / 431 MB, free: 35.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002194/0.3242, allocations: 112 kB / 431.2 MB, free: 35.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3242, allocations: 0 / 431.2 MB, free: 35.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.549e-05/0.3243, allocations: 70.5 kB / 431.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.3247, allocations: 8.719 kB / 431.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005732/0.3253, allocations: 262.8 kB / 431.5 MB, free: 35.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001625/0.3255, allocations: 0.6999 MB / 432.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001374/0.3256, allocations: 45.86 kB / 432.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.923e-05/0.3257, allocations: 19.3 kB / 432.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3257, allocations: 4 kB / 432.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of Templates: time 0.004526/0.3302, allocations: 0.873 MB / 433.1 MB, free: 34.27 MB / 350.1 MB make -j1 -f PNlib_PNlib.Examples.ConTest.SingleTC.makefile (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 & ./PNlib_PNlib.Examples.ConTest.SingleTC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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