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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001074/0.001074, allocations: 183.4 kB / 7.462 MB, free: 488 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.126/1.126, allocations: 205.2 MB / 213.1 MB, free: 2.223 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000926/0.0009257, allocations: 102.5 kB / 261.1 MB, free: 1.418 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06632/0.06632, allocations: 16.72 MB / 325.7 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.206/0.2723, allocations: 57.8 MB / 383.5 MB, free: 88.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08535/0.3577, allocations: 51.69 MB / 435.2 MB, free: 41.39 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2696/0.6274, allocations: 76.41 MB / 0.4996 GB, free: 12.99 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001634/0.6276, allocations: 65.19 kB / 0.4997 GB, free: 12.99 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.004786/0.6324, allocations: 2.35 MB / 0.502 GB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.6324, allocations: 7.688 kB / 0.502 GB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.625e-05/0.6325, allocations: 15.5 kB / 0.502 GB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.6327, allocations: 207 kB / 0.5022 GB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.6327, allocations: 0 / 0.5022 GB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.6328, allocations: 7.969 kB / 0.5022 GB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.858e-05/0.6329, allocations: 41.55 kB / 0.5023 GB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.633, allocations: 105.6 kB / 0.5024 GB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.633, allocations: 0 / 0.5024 GB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.633, allocations: 0 / 0.5024 GB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.633, allocations: 7.875 kB / 0.5024 GB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004972/0.6335, allocations: 0.7084 MB / 0.5031 GB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.6337, allocations: 45.98 kB / 0.5031 GB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.823e-05/0.6337, allocations: 19.42 kB / 0.5031 GB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.6337, allocations: 0 / 0.5031 GB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.223e-05/0.6337, allocations: 38.34 kB / 0.5032 GB, free: 11.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.72e-07/0.6338, allocations: 0 / 0.5032 GB, free: 11.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001618/0.6339, allocations: 66.58 kB / 0.5032 GB, free: 11.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.513e-05/0.634, allocations: 80.98 kB / 0.5033 GB, free: 11.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.057e-05/0.6341, allocations: 149.8 kB / 0.5035 GB, free: 11.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.6341, allocations: 25.7 kB / 0.5035 GB, free: 11.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.37e-05/0.6341, allocations: 108.1 kB / 0.5036 GB, free: 11.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.062e-05/0.6341, allocations: 15.62 kB / 0.5036 GB, free: 11.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.6341, allocations: 0 / 0.5036 GB, free: 11.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.602e-05/0.6342, allocations: 331.1 kB / 0.5039 GB, free: 10.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.962e-05/0.6342, allocations: 17.12 kB / 0.5039 GB, free: 10.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.663e-05/0.6343, allocations: 51.75 kB / 0.504 GB, free: 10.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.011e-05/0.6344, allocations: 22.8 kB / 0.504 GB, free: 10.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.6344, allocations: 3.938 kB / 0.504 GB, free: 10.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002027/0.6346, allocations: 100.5 kB / 0.5041 GB, free: 10.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.6346, allocations: 7.812 kB / 0.5041 GB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.6346, allocations: 4.125 kB / 0.5041 GB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.6346, allocations: 0 / 0.5041 GB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.138e-05/0.6347, allocations: 17.25 kB / 0.5041 GB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.6347, allocations: 3.875 kB / 0.5041 GB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.422e-05/0.6348, allocations: 7.781 kB / 0.5041 GB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.6348, allocations: 10.25 kB / 0.5041 GB, free: 10.63 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 () * 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 5.933e-05/0.6348, allocations: 134.6 kB / 0.5043 GB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.51e-05/0.6349, allocations: 11.56 kB / 0.5043 GB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001942/0.6351, allocations: 129.9 kB / 0.5044 GB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.6351, allocations: 7.344 kB / 0.5044 GB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.6351, allocations: 2.531 kB / 0.5044 GB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.6351, allocations: 3.906 kB / 0.5044 GB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.76e-05/0.6352, allocations: 164.7 kB / 0.5046 GB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.6352, allocations: 0 / 0.5046 GB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.13e-05/0.6353, allocations: 9.719 kB / 0.5046 GB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.6353, allocations: 0 / 0.5046 GB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.6353, allocations: 0 / 0.5046 GB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.6353, allocations: 7.375 kB / 0.5046 GB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.6353, allocations: 0 / 0.5046 GB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.721e-05/0.6354, allocations: 93.39 kB / 0.5047 GB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001806/0.6356, allocations: 478.8 kB / 0.5051 GB, free: 25.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.86e-05/0.6356, allocations: 96.11 kB / 0.5052 GB, free: 25.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.6357, allocations: 3.875 kB / 0.5052 GB, free: 25.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.658e-05/0.6357, allocations: 0 / 0.5052 GB, free: 25.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.215e-05/0.6357, allocations: 0 / 0.5052 GB, free: 25.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.6357, allocations: 7.875 kB / 0.5052 GB, free: 25.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.55e-05/0.6358, allocations: 117.5 kB / 0.5054 GB, free: 25.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007793/0.6366, allocations: 30.25 kB / 0.5054 GB, free: 25.55 MB / 366.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) * 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.0001337/0.6367, allocations: 111.8 kB / 0.5055 GB, free: 25.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001119/0.6368, allocations: 79.5 kB / 0.5056 GB, free: 25.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.6369, allocations: 0 / 0.5056 GB, free: 25.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.963e-05/0.6369, allocations: 47.25 kB / 0.5056 GB, free: 25.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.637, allocations: 15.41 kB / 0.5056 GB, free: 25.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.6381, allocations: 382.6 kB / 0.506 GB, free: 25.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000428/0.6385, allocations: 0.7513 MB / 0.5067 GB, free: 24.57 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.6386, allocations: 0 / 0.5067 GB, free: 24.57 MB / 366.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)