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.001277/0.001277, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001334/0.001334, allocations: 177.3 kB / 15.94 MB, free: 228 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.414/1.414, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.2109/0.2109, allocations: 16.87 MB / 307.9 MB, free: 15.64 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003033/0.0003034, allocations: 8 kB / 373 MB, free: 3.254 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2925, allocations: 54.5 MB / 427.5 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.0009736/0.2935, allocations: 0.7768 MB / 428.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006171/0.2941, allocations: 397.8 kB / 428.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.08e-05/0.2942, allocations: 1.062 kB / 428.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.2943, allocations: 42.45 kB / 428.7 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002459/0.2946, allocations: 62.84 kB / 428.7 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001465/0.2948, allocations: 85.62 kB / 428.8 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.2949, allocations: 169 kB / 429 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.672e-05/0.295, allocations: 26.86 kB / 429 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.2951, allocations: 94.38 kB / 429.1 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.548e-05/0.2952, allocations: 48.16 kB / 429.1 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.2952, allocations: 6.094 kB / 429.1 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.2953, allocations: 43.45 kB / 429.2 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.475e-05/0.2954, allocations: 19.28 kB / 429.2 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.025e-05/0.2955, allocations: 41.95 kB / 429.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.2956, allocations: 71.08 kB / 429.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.2956, allocations: 0 / 429.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2956, allocations: 1.719 kB / 429.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.2956, allocations: 0 / 429.3 MB, free: 37.33 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.0004162/0.296, allocations: 421.3 kB / 429.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.2961, allocations: 12.69 kB / 429.7 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.35e-05/0.2961, allocations: 40.67 kB / 429.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.663e-05/0.2962, allocations: 11.91 kB / 429.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.2963, allocations: 202.1 kB / 430 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.2964, allocations: 6.188 kB / 430 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.2964, allocations: 7.438 kB / 430 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.2966, allocations: 114.7 kB / 430.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.2966, allocations: 0 / 430.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.2966, allocations: 3.938 kB / 430.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.2966, allocations: 5.062 kB / 430.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.37e-05/0.2967, allocations: 51.06 kB / 430.2 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006124/0.2973, allocations: 0.7366 MB / 430.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001541/0.2975, allocations: 54.91 kB / 431 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.2975, allocations: 2.969 kB / 431 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.468e-05/0.2975, allocations: 34.06 kB / 431 MB, free: 35.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.2976, allocations: 0 / 431 MB, free: 35.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002578/0.2978, allocations: 197.3 kB / 431.2 MB, free: 35.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.2979, allocations: 80.55 kB / 431.3 MB, free: 35.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.298, allocations: 171.7 kB / 431.4 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.528e-06/0.298, allocations: 25.7 kB / 431.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.101e-05/0.2981, allocations: 114.4 kB / 431.6 MB, free: 35.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.294e-05/0.2981, allocations: 14.77 kB / 431.6 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.984e-06/0.2981, allocations: 7.188 kB / 431.6 MB, free: 35.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.325e-05/0.2982, allocations: 324.4 kB / 431.9 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.02e-05/0.2982, allocations: 28.33 kB / 431.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.106e-05/0.2983, allocations: 52.58 kB / 432 MB, free: 34.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.584e-05/0.2983, allocations: 48.28 kB / 432 MB, free: 34.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2983, allocations: 0 / 432 MB, free: 34.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001891/0.2985, allocations: 155 kB / 432.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.2986, allocations: 31.92 kB / 432.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.2986, allocations: 4.062 kB / 432.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.2986, allocations: 3.844 kB / 432.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.955e-05/0.2987, allocations: 20.2 kB / 432.3 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.2987, allocations: 0 / 432.3 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.404e-05/0.2987, allocations: 12.59 kB / 432.3 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.2987, allocations: 4.953 kB / 432.3 MB, free: 34.78 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 9.194e-05/0.2988, allocations: 158.8 kB / 432.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.178e-05/0.2989, allocations: 19.52 kB / 432.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002092/0.2991, allocations: 147.1 kB / 432.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2991, allocations: 0 / 432.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2991, allocations: 3.375 kB / 432.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2991, allocations: 4 kB / 432.6 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/0.2992, allocations: 192.8 kB / 432.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2992, allocations: 0 / 432.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.918e-05/0.2993, allocations: 9 kB / 432.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.2993, allocations: 3.281 kB / 432.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.2993, allocations: 0 / 432.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.2993, allocations: 2.469 kB / 432.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2993, allocations: 0 / 432.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/0.2995, allocations: 136.4 kB / 432.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.912e-05/0.2995, allocations: 89.41 kB / 433 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.2995, allocations: 2.5 kB / 433 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.26e-05/0.2995, allocations: 3.938 kB / 433 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.164e-05/0.2996, allocations: 9.156 kB / 433 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.2996, allocations: 2.656 kB / 433 MB, free: 34.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.183e-05/0.2997, allocations: 130.8 kB / 433.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2997, allocations: 0 / 433.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002191/0.2999, allocations: 25.44 kB / 433.2 MB, free: 34.04 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.000301/0.3002, allocations: 0.6944 MB / 433.9 MB, free: 33.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.3003, allocations: 113.3 kB / 434 MB, free: 33.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3003, allocations: 0 / 434 MB, free: 33.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.683e-05/0.3004, allocations: 74.17 kB / 434.1 MB, free: 33.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001195/0.3005, allocations: 8.078 kB / 434.1 MB, free: 33.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008138/0.3013, allocations: 1.274 MB / 435.4 MB, free: 32.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.3015, allocations: 0.7118 MB / 436.1 MB, free: 31.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.735e-05/0.3016, allocations: 53.84 kB / 436.1 MB, free: 31.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.37e-05/0.3016, allocations: 44.48 kB / 436.2 MB, free: 31.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3017, allocations: 0 / 436.2 MB, free: 31.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01509/0.3167, allocations: 2.293 MB / 438.5 MB, free: 31.28 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001834/0.317, allocations: 147.3 kB / 438.6 MB, free: 31.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.55/1.867, allocations: 0 / 438.6 MB, free: 31.04 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