Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test9.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo", uses=false) Using package ConPNlib with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo) Running command: "" <> buildModelFMU(ConPNlib.Examples.Test9,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test9",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test9,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test9",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/ConPNlib master/package.mo): time 0.01424/0.01425, allocations: 1.331 MB / 8.617 MB, free: 1.664 MB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 0.02846/0.0428, allocations: 4.3 MB / 12.92 MB, free: 1.031 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0009158/0.04376, allocations: 362 kB / 13.27 MB, free: 0.6836 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0121/0.05589, allocations: 3.284 MB / 16.55 MB, free: 472 kB / 7.832 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001902/0.05616, allocations: 50.8 kB / 16.6 MB, free: 420 kB / 7.832 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.07783/0.134, allocations: 11.31 MB / 27.91 MB, free: 3.031 MB / 13.95 MB Notification: Performance of prepare preOptimizeDAE: time 6.827e-05/0.1341, allocations: 8.266 kB / 27.92 MB, free: 3.031 MB / 13.95 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000341/0.1345, allocations: 80.5 kB / 28 MB, free: 2.992 MB / 13.95 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.1357, allocations: 467 kB / 28.46 MB, free: 2.707 MB / 13.95 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.258e-05/0.1358, allocations: 31.12 kB / 28.49 MB, free: 2.707 MB / 13.95 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.136, allocations: 53.66 kB / 28.54 MB, free: 2.707 MB / 13.95 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003139/0.1391, allocations: 0.7781 MB / 29.32 MB, free: 2.02 MB / 13.95 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00549/0.1447, allocations: 1.053 MB / 30.37 MB, free: 1.133 MB / 13.95 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.817e-05/0.1448, allocations: 0 / 30.37 MB, free: 1.133 MB / 13.95 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002265/0.1451, allocations: 4 kB / 30.37 MB, free: 1.129 MB / 13.95 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002881/0.1454, allocations: 63.55 kB / 30.44 MB, free: 1.078 MB / 13.95 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01587/0.1613, allocations: 1.877 MB / 32.31 MB, free: 2.758 MB / 13.95 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.1628, allocations: 0.5685 MB / 32.88 MB, free: 2.543 MB / 13.95 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000995/0.1638, allocations: 331.8 kB / 33.21 MB, free: 2.535 MB / 13.95 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001526/0.1654, allocations: 1.03 MB / 34.24 MB, free: 1.41 MB / 13.95 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/0.1655, allocations: 39.53 kB / 34.27 MB, free: 1.371 MB / 13.95 MB Notification: Performance of pre-optimization done (n=42): time 6.432e-06/0.1655, allocations: 0 / 34.27 MB, free: 1.371 MB / 13.95 MB Notification: Performance of matching and sorting (n=42): time 0.003112/0.1686, allocations: 0.5982 MB / 34.87 MB, free: 1.328 MB / 13.95 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001621/0.1688, allocations: 217.6 kB / 35.08 MB, free: 1.109 MB / 13.95 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005184/0.1694, allocations: 231.4 kB / 35.31 MB, free: 1.012 MB / 13.95 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.1695, allocations: 34.98 kB / 35.35 MB, free: 0.9805 MB / 13.95 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003818/0.1699, allocations: 336.1 kB / 35.67 MB, free: 0.793 MB / 13.95 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002706/0.1702, allocations: 133 kB / 35.8 MB, free: 0.7148 MB / 13.95 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.322e-05/0.1703, allocations: 3 kB / 35.81 MB, free: 0.7148 MB / 13.95 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1705, allocations: 341.7 kB / 36.14 MB, free: 412 kB / 13.95 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009675/0.1715, allocations: 272.8 kB / 36.41 MB, free: 400 kB / 13.95 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.1726, allocations: 425.7 kB / 36.82 MB, free: 112 kB / 13.95 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.1742, allocations: 294.7 kB / 37.11 MB, free: 28 kB / 13.95 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.288e-05/0.1742, allocations: 3 kB / 37.11 MB, free: 28 kB / 13.95 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.01137/0.1856, allocations: 0.7799 MB / 37.89 MB, free: 2.633 MB / 13.95 MB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.1857, allocations: 4 kB / 37.9 MB, free: 2.633 MB / 13.95 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/0.1857, allocations: 3.562 kB / 37.9 MB, free: 2.633 MB / 13.95 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005838/0.1916, allocations: 433.8 kB / 38.32 MB, free: 2.621 MB / 13.95 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007501/0.1924, allocations: 84.09 kB / 38.41 MB, free: 2.617 MB / 13.95 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00219/0.1946, allocations: 0.8544 MB / 39.26 MB, free: 2.102 MB / 13.95 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001081/0.1958, allocations: 68.56 kB / 39.33 MB, free: 2.094 MB / 13.95 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000184/0.196, allocations: 41.02 kB / 39.37 MB, free: 2.094 MB / 13.95 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: T2.speedSumIn[1]:VARIABLE(protected = true ) "Input speeds of continuous input places" type: Real [1] P1.prelimSpeedOut[1]:VARIABLE(protected = true ) "preliminary speed of output transitions" type: Real [1] P2.prelimSpeedOut[1]:VARIABLE(protected = true ) "preliminary speed of output transitions" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P3.fireIn[1],P3.feeding,P1.feeding,P1.outTransition[1].arcType,P2.outTransition[1].arcType,P3.emptying,P1.fireOut[1],T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],$PRE.P2.fireIn[1],P2.fireIn[1],$PRE.P2.fireOut[1],P2.fireOut[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],T2.activation.emptied[1],T2.activation.arcType[1],T1.activation.arcType[1],T1.activation.fed[1],T1.outPlaces[1].enabledByInPlaces,T2.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005741/0.1966, allocations: 229.6 kB / 39.59 MB, free: 1.922 MB / 13.95 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/0.1968, allocations: 34.75 kB / 39.63 MB, free: 1.922 MB / 13.95 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003729/0.2005, allocations: 0.7391 MB / 40.36 MB, free: 1.859 MB / 13.95 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.81e-05/0.2007, allocations: 7 kB / 40.37 MB, free: 1.859 MB / 13.95 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.2007, allocations: 0 / 40.37 MB, free: 1.859 MB / 13.95 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.2007, allocations: 6.969 kB / 40.38 MB, free: 1.859 MB / 13.95 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004589/0.2053, allocations: 1.228 MB / 41.61 MB, free: 1.477 MB / 13.95 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.2054, allocations: 2.406 kB / 41.61 MB, free: 1.477 MB / 13.95 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005425/0.206, allocations: 41.66 kB / 41.65 MB, free: 1.445 MB / 13.95 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002574/0.2086, allocations: 331.4 kB / 41.97 MB, free: 1.191 MB / 13.95 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002134/0.2089, allocations: 21.06 kB / 41.99 MB, free: 1.176 MB / 13.95 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01035/0.2192, allocations: 0.8877 MB / 42.88 MB, free: 2.164 MB / 13.95 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.176e-05/0.2193, allocations: 10.59 kB / 42.89 MB, free: 2.164 MB / 13.95 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00448/0.2238, allocations: 1.097 MB / 43.99 MB, free: 2.023 MB / 13.95 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006444/0.2303, allocations: 1.822 MB / 45.81 MB, free: 1.438 MB / 13.95 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.2305, allocations: 106 kB / 45.91 MB, free: 1.344 MB / 13.95 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001496/0.2307, allocations: 18.44 kB / 45.93 MB, free: 1.34 MB / 13.95 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004872/0.2312, allocations: 48.69 kB / 45.98 MB, free: 1.336 MB / 13.95 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003509/0.2315, allocations: 118.3 kB / 46.1 MB, free: 1.309 MB / 13.95 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.2317, allocations: 29.56 kB / 46.12 MB, free: 1.305 MB / 13.95 MB Notification: Performance of sort global known variables: time 0.0002463/0.2319, allocations: 152.7 kB / 46.27 MB, free: 1.203 MB / 13.95 MB Notification: Performance of remove unused functions: time 0.001928/0.2339, allocations: 219.7 kB / 46.49 MB, free: 1.199 MB / 13.95 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (P1.t_,P2.t_,P3.t_) * Number of discrete variables: 14 (P1.fireOut[1],P1.emptying,T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],P2.fireIn[1],P2.fireOut[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P3.feeding) * Number of discrete states: 10 (P3.fireIn[1],P2.fireOut[1],P2.fireIn[1],P1.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active) * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006879/0.2346, allocations: 220.1 kB / 46.7 MB, free: 1.09 MB / 13.95 MB Notification: Performance of simCode: created initialization part: time 0.002279/0.2369, allocations: 0.8252 MB / 47.53 MB, free: 468 kB / 13.95 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.237, allocations: 0.75 kB / 47.53 MB, free: 468 kB / 13.95 MB Notification: Performance of simCode: created simulation system equations: time 0.008675/0.2457, allocations: 0.5432 MB / 48.07 MB, free: 2.238 MB / 13.95 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005615/0.2463, allocations: 35.56 kB / 48.11 MB, free: 2.238 MB / 13.95 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.2492, allocations: 1.098 MB / 49.2 MB, free: 1.996 MB / 13.95 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009289/0.2502, allocations: 1.074 MB / 50.28 MB, free: 6.141 MB / 18.79 MB Notification: Performance of SimCode: time 1.452e-06/0.2502, allocations: 0 / 50.28 MB, free: 6.141 MB / 18.79 MB (rm -f ConPNlib_ConPNlib.Examples.Test9.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test9.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test9.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test9.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test9_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test9.fmu > ConPNlib_ConPNlib.Examples.Test9.pipe 2>&1)