Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test10.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.Test10,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test10",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test10,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test10",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01218/0.01218, allocations: 1.337 MB / 8.813 MB, free: 244 kB / 5.871 MB Notification: Performance of FrontEnd - loaded program: time 2.591e-05/2.603e-05, allocations: 3.922 kB / 13.23 MB, free: 2.297 MB / 7.832 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0009658/0.00104, allocations: 356.7 kB / 13.58 MB, free: 2.266 MB / 7.832 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.007656/0.008737, allocations: 3.408 MB / 16.99 MB, free: 1.746 MB / 10.45 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/0.009011, allocations: 51.98 kB / 17.04 MB, free: 1.695 MB / 10.45 MB Notification: Performance of FrontEnd - DAE generated: time 0.09881/0.1078, allocations: 13.5 MB / 30.54 MB, free: 1.453 MB / 13.93 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1079, allocations: 4 kB / 30.54 MB, free: 1.449 MB / 13.93 MB Notification: Performance of Transformations before backend: time 8.88e-05/0.108, allocations: 24.44 kB / 30.56 MB, free: 1.426 MB / 13.93 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.003429/0.1115, allocations: 1.021 MB / 31.59 MB, free: 348 kB / 13.93 MB Notification: Performance of prepare preOptimizeDAE: time 6.735e-05/0.1116, allocations: 12.66 kB / 31.6 MB, free: 336 kB / 13.93 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006236/0.1123, allocations: 107.6 kB / 31.7 MB, free: 228 kB / 13.93 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01779/0.1301, allocations: 0.512 MB / 32.22 MB, free: 0.9922 MB / 13.93 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.1302, allocations: 43.09 kB / 32.26 MB, free: 0.9922 MB / 13.93 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002988/0.1305, allocations: 73.48 kB / 32.33 MB, free: 0.9922 MB / 13.93 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002801/0.1334, allocations: 0.9564 MB / 33.29 MB, free: 0.9844 MB / 13.93 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002792/0.1362, allocations: 1.32 MB / 34.61 MB, free: 0.8242 MB / 13.93 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.923e-05/0.1363, allocations: 1.969 kB / 34.61 MB, free: 0.8242 MB / 13.93 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001244/0.1364, allocations: 7.562 kB / 34.62 MB, free: 0.8242 MB / 13.93 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001696/0.1366, allocations: 80.22 kB / 34.69 MB, free: 0.8203 MB / 13.93 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004863/0.1414, allocations: 2.516 MB / 37.21 MB, free: 4.426 MB / 18.61 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.1426, allocations: 0.5386 MB / 37.75 MB, free: 3.91 MB / 18.61 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007585/0.1433, allocations: 371.7 kB / 38.11 MB, free: 3.574 MB / 18.61 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007932/0.1442, allocations: 0.5989 MB / 38.71 MB, free: 2.867 MB / 18.61 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.1442, allocations: 38.56 kB / 38.75 MB, free: 2.82 MB / 18.61 MB Notification: Performance of pre-optimization done (n=50): time 4.188e-06/0.1442, allocations: 0 / 38.75 MB, free: 2.82 MB / 18.61 MB Notification: Performance of matching and sorting (n=50): time 0.001707/0.1459, allocations: 0.5684 MB / 39.32 MB, free: 2.332 MB / 18.61 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001906/0.1462, allocations: 267.2 kB / 39.58 MB, free: 2.023 MB / 18.61 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004864/0.1467, allocations: 312.1 kB / 39.88 MB, free: 1.746 MB / 18.61 MB Notification: Performance of collectPreVariables (initialization): time 8.616e-05/0.1468, allocations: 40.33 kB / 39.92 MB, free: 1.703 MB / 18.61 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004559/0.1472, allocations: 458.4 kB / 40.37 MB, free: 1.301 MB / 18.61 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002159/0.1474, allocations: 154.5 kB / 40.52 MB, free: 1.164 MB / 18.61 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.588e-05/0.1475, allocations: 8 kB / 40.53 MB, free: 1.156 MB / 18.61 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.1477, allocations: 357.2 kB / 40.88 MB, free: 0.8125 MB / 18.61 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007189/0.1485, allocations: 303.8 kB / 41.17 MB, free: 0.5508 MB / 18.61 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01367/0.1621, allocations: 0.5467 MB / 41.72 MB, free: 4.375 MB / 18.61 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.1633, allocations: 344.5 kB / 42.06 MB, free: 4.371 MB / 18.61 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.1633, allocations: 4.188 kB / 42.06 MB, free: 4.371 MB / 18.61 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.002048/0.1654, allocations: 0.838 MB / 42.9 MB, free: 4.324 MB / 18.61 MB Notification: Performance of prepare postOptimizeDAE: time 9.816e-05/0.1655, allocations: 93.14 kB / 42.99 MB, free: 4.262 MB / 18.61 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.1655, allocations: 6.812 kB / 43 MB, free: 4.262 MB / 18.61 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.838e-05/0.1656, allocations: 10.19 kB / 43.01 MB, free: 4.262 MB / 18.61 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006386/0.1662, allocations: 127.1 kB / 43.13 MB, free: 4.254 MB / 18.61 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.732e-05/0.1663, allocations: 21.11 kB / 43.15 MB, free: 4.25 MB / 18.61 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005801/0.1669, allocations: 81.7 kB / 43.23 MB, free: 4.25 MB / 18.61 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.167, allocations: 51.25 kB / 43.28 MB, free: 4.25 MB / 18.61 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 39 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P2.fireOut[1],$PRE.P2.fireOut[2],P2.emptying,$PRE.P3.fireIn[1],P3.feeding,$PRE.P4.fireIn[1],P4.feeding,P1.feeding,P1.outTransition[1].arcType,P3.emptying,P4.emptying,P2.feeding,P2.outTransition[1].arcType,IA1.outTransition.arcType,P1.fireOut[1],P2.fireOut[1],P2.fireOut[2],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P4.fireIn[1],T1.activation.arcType[2],T2.activation.arcType[1],T2.activation.fed[1],T1.activation.fed[2],T2.activation.emptied[1],T1.activation.emptied[1],T1.activation.arcType[1],T1.activation.fed[1],T1.outPlaces[1].enabledByInPlaces,T2.outPlaces[1].enabledByInPlaces,P2.outTransition[2].arcType) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 85 * Array equations: 4 * Algorithm blocks: 2 * 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.0003009/0.1673, allocations: 255.8 kB / 43.53 MB, free: 4.059 MB / 18.61 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00148/0.1688, allocations: 0.5974 MB / 44.13 MB, free: 4.02 MB / 18.61 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.1689, allocations: 40.47 kB / 44.17 MB, free: 4.02 MB / 18.61 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001786/0.1707, allocations: 0.6961 MB / 44.86 MB, free: 3.965 MB / 18.61 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.403e-05/0.1708, allocations: 7.844 kB / 44.87 MB, free: 3.965 MB / 18.61 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.986e-06/0.1708, allocations: 5.969 kB / 44.88 MB, free: 3.965 MB / 18.61 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.1708, allocations: 5.156 kB / 44.88 MB, free: 3.965 MB / 18.61 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002601/0.1734, allocations: 1.297 MB / 46.18 MB, free: 3.688 MB / 18.61 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.1735, allocations: 0 / 46.18 MB, free: 3.688 MB / 18.61 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000525/0.174, allocations: 76.28 kB / 46.25 MB, free: 3.684 MB / 18.61 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/0.174, allocations: 4.438 kB / 46.26 MB, free: 3.684 MB / 18.61 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.16e-05/0.1741, allocations: 18.66 kB / 46.28 MB, free: 3.684 MB / 18.61 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.69e-06/0.1741, allocations: 1.422 kB / 46.28 MB, free: 3.684 MB / 18.61 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.1741, allocations: 6.719 kB / 46.28 MB, free: 3.684 MB / 18.61 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00225/0.1764, allocations: 1.088 MB / 47.37 MB, free: 3.043 MB / 18.61 MB Notification: Performance of postOpt removeConstants (simulation): time 9.633e-05/0.1765, allocations: 112.4 kB / 47.48 MB, free: 2.938 MB / 18.61 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001335/0.1767, allocations: 22.72 kB / 47.5 MB, free: 2.918 MB / 18.61 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005026/0.1772, allocations: 48.08 kB / 47.55 MB, free: 2.883 MB / 18.61 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003611/0.1776, allocations: 134.3 kB / 47.68 MB, free: 2.793 MB / 18.61 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.1777, allocations: 39.25 kB / 47.72 MB, free: 2.762 MB / 18.61 MB Notification: Performance of sorting global known variables: time 0.0002211/0.1779, allocations: 187.7 kB / 47.9 MB, free: 2.59 MB / 18.61 MB Notification: Performance of sort global known variables: time 4e-07/0.1779, allocations: 0 / 47.9 MB, free: 2.59 MB / 18.61 MB Notification: Performance of remove unused functions: time 0.001068/0.179, allocations: 261 kB / 48.16 MB, free: 2.387 MB / 18.61 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (P1.t_,P2.t_,P3.t_,P4.t_) * Number of discrete variables: 16 (P1.fireOut[1],P1.emptying,P2.fireOut[1],P2.fireOut[2],P2.emptying,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P3.feeding,P4.fireIn[1],P4.feeding) * Number of discrete states: 12 (P4.fireIn[1],P3.fireIn[1],P2.fireOut[1],P2.fireOut[2],P1.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[2],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 (49): * Single equations (assignments): 43 * Array equations: 4 * Algorithm blocks: 2 * 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.004423/0.1834, allocations: 1.778 MB / 49.94 MB, free: 0.7539 MB / 18.61 MB Notification: Performance of simCode: created initialization part: time 0.01398/0.1975, allocations: 1.083 MB / 51.02 MB, free: 4.109 MB / 18.61 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.1975, allocations: 7.219 kB / 51.03 MB, free: 4.109 MB / 18.61 MB Notification: Performance of simCode: created simulation system equations: time 0.0009389/0.1985, allocations: 0.5512 MB / 51.58 MB, free: 3.984 MB / 18.61 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000524/0.199, allocations: 45.94 kB / 51.62 MB, free: 3.984 MB / 18.61 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00387/0.2029, allocations: 1.645 MB / 53.27 MB, free: 3.625 MB / 18.61 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007118/0.2037, allocations: 1.129 MB / 54.4 MB, free: 2.93 MB / 18.61 MB Notification: Performance of simCode: alias equations: time 0.0007765/0.2045, allocations: 188.8 kB / 54.58 MB, free: 2.922 MB / 18.61 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005684/0.205, allocations: 322.8 kB / 54.9 MB, free: 2.922 MB / 18.61 MB Notification: Performance of SimCode: time 1.042e-06/0.2051, allocations: 0 / 54.9 MB, free: 2.922 MB / 18.61 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09039/0.2955, allocations: 12.48 MB / 67.38 MB, free: 340 kB / 18.61 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002439/0.2958, allocations: 102.7 kB / 67.48 MB, free: 240 kB / 18.61 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.036/3.332, allocations: 0 / 67.48 MB, free: 240 kB / 18.61 MB (rm -f ConPNlib_ConPNlib.Examples.Test10.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test10.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test10.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test10.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test10_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test10.fmu > ConPNlib_ConPNlib.Examples.Test10.pipe 2>&1)