Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.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.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",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.001051/0.001051, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001369/0.001368, allocations: 172.7 kB / 15.95 MB, free: 208 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.365/1.365, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.2184/0.2184, allocations: 16.88 MB / 308 MB, free: 15.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002918/0.0002918, allocations: 8 kB / 373.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.337, allocations: 54.51 MB / 427.6 MB, free: 38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.00112/0.3382, allocations: 0.755 MB / 428.3 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005429/0.3388, allocations: 286.6 kB / 428.6 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.289e-05/0.3389, allocations: 1.562 kB / 428.6 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001594/0.339, allocations: 33.02 kB / 428.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.3392, allocations: 32.72 kB / 428.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001118/0.3394, allocations: 52.3 kB / 428.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.3395, allocations: 201.2 kB / 428.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.296e-05/0.3396, allocations: 22.58 kB / 429 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.743e-05/0.3397, allocations: 95.55 kB / 429 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.721e-05/0.3398, allocations: 42.25 kB / 429.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.507e-05/0.3398, allocations: 2.781 kB / 429.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.328e-05/0.3399, allocations: 15.88 kB / 429.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.069e-05/0.3399, allocations: 16.95 kB / 429.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.765e-05/0.34, allocations: 39.02 kB / 429.2 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.217e-05/0.3401, allocations: 54.47 kB / 429.2 MB, free: 37.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3401, allocations: 0 / 429.2 MB, free: 37.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.3401, allocations: 0 / 429.2 MB, free: 37.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.3401, allocations: 0 / 429.2 MB, free: 37.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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0004607/0.3406, allocations: 426 kB / 429.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.3406, allocations: 9.562 kB / 429.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.353e-05/0.3407, allocations: 38.69 kB / 429.7 MB, free: 37.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.482e-05/0.3407, allocations: 19.44 kB / 429.7 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.3409, allocations: 197.4 kB / 429.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.3409, allocations: 7.5 kB / 429.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.3409, allocations: 11.94 kB / 429.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002422/0.3412, allocations: 141.2 kB / 430 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.3412, allocations: 3.938 kB / 430 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.3412, allocations: 8.812 kB / 430.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3412, allocations: 0 / 430.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.3414, allocations: 70.31 kB / 430.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006746/0.3421, allocations: 0.9141 MB / 431 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.3423, allocations: 84.5 kB / 431.1 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.896e-05/0.3423, allocations: 33.09 kB / 431.2 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.115e-06/0.3424, allocations: 0 / 431.2 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001793/0.3425, allocations: 89.02 kB / 431.2 MB, free: 35.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.804e-06/0.3426, allocations: 10.89 kB / 431.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003197/0.3429, allocations: 150.1 kB / 431.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.3429, allocations: 112.3 kB / 431.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.3431, allocations: 175.9 kB / 431.7 MB, free: 35.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.3431, allocations: 31.55 kB / 431.7 MB, free: 35.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.175e-05/0.3431, allocations: 110.4 kB / 431.8 MB, free: 35.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.3432, allocations: 31.86 kB / 431.8 MB, free: 35.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-06/0.3432, allocations: 6.281 kB / 431.9 MB, free: 35.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.616e-05/0.3432, allocations: 324 kB / 432.2 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.673e-05/0.3433, allocations: 26.69 kB / 432.2 MB, free: 35.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.921e-05/0.3434, allocations: 76.91 kB / 432.3 MB, free: 35.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.088e-05/0.3435, allocations: 67.92 kB / 432.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3435, allocations: 3.938 kB / 432.3 MB, free: 35.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002378/0.3437, allocations: 186 kB / 432.5 MB, free: 35.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.3438, allocations: 34.19 kB / 432.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.3438, allocations: 2.75 kB / 432.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3438, allocations: 2.625 kB / 432.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.389e-05/0.3439, allocations: 21.38 kB / 432.6 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.3439, allocations: 3.953 kB / 432.6 MB, free: 34.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.184e-05/0.344, allocations: 18.97 kB / 432.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.344, allocations: 5.969 kB / 432.6 MB, free: 34.96 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = true protected = true ) "next putative firing time" type: Real T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,T1.active,$PRE.T1.firingTime,T1.firingTime,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.active,$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,T1.firingCon,$whenCondition1,T1.enabledByInPlaces,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 0.0001464/0.3442, allocations: 166.7 kB / 432.8 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.762e-05/0.3442, allocations: 12.94 kB / 432.8 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.151e-05/0.3442, allocations: 17.58 kB / 432.8 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.3442, allocations: 3.938 kB / 432.8 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.3442, allocations: 2.875 kB / 432.8 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.3442, allocations: 7.891 kB / 432.8 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003883/0.3446, allocations: 0.4902 MB / 433.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3447, allocations: 0 / 433.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.79e-05/0.3447, allocations: 8.938 kB / 433.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3447, allocations: 0 / 433.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.3447, allocations: 3.281 kB / 433.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3447, allocations: 3.953 kB / 433.3 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.3447, allocations: 7.938 kB / 433.3 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001967/0.3449, allocations: 305 kB / 433.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.169e-05/0.345, allocations: 98.61 kB / 433.7 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.345, allocations: 2.969 kB / 433.7 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.289e-05/0.3451, allocations: 6.969 kB / 433.7 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.501e-05/0.3452, allocations: 19.64 kB / 433.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-06/0.3452, allocations: 2.562 kB / 433.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.528e-05/0.3452, allocations: 130.4 kB / 433.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3452, allocations: 2.906 kB / 433.9 MB, free: 33.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002824/0.3455, allocations: 18.16 kB / 433.9 MB, free: 33.94 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,T1.fireTime,T1.ani,T1.active,$whenCondition2,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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.0003955/0.3459, allocations: 0.8437 MB / 434.8 MB, free: 33.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002137/0.3462, allocations: 147.7 kB / 434.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.3462, allocations: 0 / 434.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.688e-05/0.3463, allocations: 85.33 kB / 435 MB, free: 33.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.3466, allocations: 19.73 kB / 435 MB, free: 33.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.3478, allocations: 0.7743 MB / 435.8 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.3479, allocations: 0.7167 MB / 436.5 MB, free: 31.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.718e-05/0.348, allocations: 15.95 kB / 436.5 MB, free: 31.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.368e-05/0.3481, allocations: 43.56 kB / 436.5 MB, free: 31.85 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3481, allocations: 0 / 436.5 MB, free: 31.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01262/0.3607, allocations: 2.242 MB / 438.8 MB, free: 31.62 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001421/0.3609, allocations: 153.3 kB / 438.9 MB, free: 31.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.143, allocations: 0 / 438.9 MB, free: 31.38 MB / 350.1 MB (rm -f PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SingleTD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SingleTD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PNlib_PNlib.Examples.DisTest.SingleTD_res.mat --tempDir=temp_PNlib_PNlib_Examples_DisTest_SingleTD_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_DisTest_SingleTD.fmu > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PNlib_PNlib.Examples.DisTest.SingleTD_res.mat does not exist to compare? outputFormat=mat