Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test3.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.Test3,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test3,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.005182/0.005182, allocations: 1.365 MB / 16.61 MB, free: 5.148 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.543e-05/1.545e-05, allocations: 0 / 23.76 MB, free: 3.719 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.000337/0.0003695, allocations: 364.3 kB / 24.12 MB, free: 3.375 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test3): time 0.000668/0.001046, allocations: 0.7531 MB / 24.87 MB, free: 2.625 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.0007046/0.00176, allocations: 0.5983 MB / 25.47 MB, free: 2.027 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.099e-05/0.001842, allocations: 0 / 25.47 MB, free: 2.027 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.002001, allocations: 47.66 kB / 25.51 MB, free: 1.98 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0004032/0.002411, allocations: 184.8 kB / 25.69 MB, free: 1.801 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 5.999e-05/0.002482, allocations: 30.03 kB / 25.72 MB, free: 1.773 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0001546/0.002645, allocations: 215.4 kB / 25.93 MB, free: 1.562 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.002762, allocations: 74.42 kB / 26.01 MB, free: 1.488 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 6.204e-05/0.002831, allocations: 91.48 kB / 26.1 MB, free: 1.398 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 9.037e-05/0.002928, allocations: 79.39 kB / 26.17 MB, free: 1.32 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 2.029e-05/0.002955, allocations: 12 kB / 26.18 MB, free: 1.309 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001604/0.003121, allocations: 139.7 kB / 26.32 MB, free: 1.172 MB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 4.542e-05/0.003174, allocations: 39.78 kB / 26.36 MB, free: 1.133 MB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 5.166e-05/0.003232, allocations: 75.53 kB / 26.43 MB, free: 1.059 MB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.003464, allocations: 283.2 kB / 26.71 MB, free: 0.7812 MB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.003474, allocations: 4 kB / 26.71 MB, free: 0.7773 MB / 13.93 MB Notification: Performance of FrontEnd: time 1.363e-06/0.00348, allocations: 0 / 26.71 MB, free: 0.7773 MB / 13.93 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.003489, allocations: 0 / 26.71 MB, free: 0.7773 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0004165/0.00391, allocations: 484.3 kB / 27.19 MB, free: 256 kB / 13.93 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.003954, allocations: 12.97 kB / 27.2 MB, free: 244 kB / 13.93 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.39e-05/0.004004, allocations: 64.52 kB / 27.26 MB, free: 172 kB / 13.93 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.375e-05/0.004054, allocations: 24.66 kB / 27.29 MB, free: 148 kB / 13.93 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.004299, allocations: 239.9 kB / 27.52 MB, free: 4.531 MB / 18.59 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.285e-05/0.004358, allocations: 20.94 kB / 27.54 MB, free: 4.512 MB / 18.59 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/0.004405, allocations: 20.38 kB / 27.56 MB, free: 4.492 MB / 18.59 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005308/0.004942, allocations: 344.8 kB / 27.9 MB, free: 4.141 MB / 18.59 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.004966, allocations: 9.719 kB / 27.91 MB, free: 4.133 MB / 18.59 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/0.005001, allocations: 12 kB / 27.92 MB, free: 4.121 MB / 18.59 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.029e-05/0.005046, allocations: 16.42 kB / 27.94 MB, free: 4.105 MB / 18.59 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003667/0.00542, allocations: 233.5 kB / 28.16 MB, free: 3.879 MB / 18.59 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.006494, allocations: 0.9103 MB / 29.07 MB, free: 2.871 MB / 18.59 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.006765, allocations: 146.4 kB / 29.22 MB, free: 2.719 MB / 18.59 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.006917, allocations: 92.81 kB / 29.31 MB, free: 2.625 MB / 18.59 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003185/0.007244, allocations: 425.5 kB / 29.72 MB, free: 2.117 MB / 18.59 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.007281, allocations: 46.55 kB / 29.77 MB, free: 2.062 MB / 18.59 MB Notification: Performance of pre-optimization done (n=13): time 1.423e-06/0.007288, allocations: 0 / 29.77 MB, free: 2.062 MB / 18.59 MB Notification: Performance of matching and sorting (n=13): time 0.0005739/0.007867, allocations: 295.9 kB / 30.06 MB, free: 1.762 MB / 18.59 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.00793, allocations: 114.8 kB / 30.17 MB, free: 1.625 MB / 18.59 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.008062, allocations: 158.7 kB / 30.32 MB, free: 1.457 MB / 18.59 MB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.008091, allocations: 29.7 kB / 30.35 MB, free: 1.422 MB / 18.59 MB Notification: Performance of collectInitialEqns (initialization): time 9.081e-05/0.008188, allocations: 148 kB / 30.5 MB, free: 1.273 MB / 18.59 MB Notification: Performance of collectInitialBindings (initialization): time 3.912e-05/0.008234, allocations: 43.45 kB / 30.54 MB, free: 1.23 MB / 18.59 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/0.008285, allocations: 29.7 kB / 30.57 MB, free: 1.195 MB / 18.59 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.008442, allocations: 326.8 kB / 30.89 MB, free: 0.8672 MB / 18.59 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.008595, allocations: 76.3 kB / 30.96 MB, free: 0.793 MB / 18.59 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.008765, allocations: 125 kB / 31.09 MB, free: 0.6562 MB / 18.59 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003099/0.009085, allocations: 240.2 kB / 31.32 MB, free: 404 kB / 18.59 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.009098, allocations: 32 / 31.32 MB, free: 404 kB / 18.59 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004432/0.009548, allocations: 302.9 kB / 31.62 MB, free: 88 kB / 18.59 MB Notification: Performance of prepare postOptimizeDAE: time 3.783e-05/0.009596, allocations: 37.81 kB / 31.65 MB, free: 44 kB / 18.59 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.009608, allocations: 3.938 kB / 31.66 MB, free: 40 kB / 18.59 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.009623, allocations: 0 / 31.66 MB, free: 40 kB / 18.59 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.009742, allocations: 27.98 kB / 31.68 MB, free: 12 kB / 18.59 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.009757, allocations: 3.984 kB / 31.69 MB, free: 8 kB / 18.59 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00542/0.01518, allocations: 22.55 kB / 31.71 MB, free: 7.34 MB / 18.59 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.761e-05/0.01523, allocations: 9.719 kB / 31.72 MB, free: 7.34 MB / 18.59 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (P1.feeding,$PRE.P1.fireIn[1],T1.activation.emptied[1],P1.fireIn[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.active,T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001638/0.0154, allocations: 199.1 kB / 31.91 MB, free: 7.195 MB / 18.59 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.039e-05/0.01545, allocations: 9.594 kB / 31.92 MB, free: 7.195 MB / 18.59 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005136/0.01597, allocations: 299 kB / 32.21 MB, free: 7.125 MB / 18.59 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.01599, allocations: 6.609 kB / 32.22 MB, free: 7.125 MB / 18.59 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.016, allocations: 0 / 32.22 MB, free: 7.125 MB / 18.59 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.01601, allocations: 0 / 32.22 MB, free: 7.125 MB / 18.59 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006269/0.01664, allocations: 0.611 MB / 32.83 MB, free: 6.801 MB / 18.59 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.01665, allocations: 0 / 32.83 MB, free: 6.801 MB / 18.59 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.261e-05/0.01675, allocations: 24.12 kB / 32.86 MB, free: 6.801 MB / 18.59 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.01676, allocations: 6.156 kB / 32.86 MB, free: 6.801 MB / 18.59 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.01678, allocations: 5.688 kB / 32.87 MB, free: 6.801 MB / 18.59 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.01679, allocations: 0 / 32.87 MB, free: 6.801 MB / 18.59 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.01679, allocations: 4.031 kB / 32.87 MB, free: 6.801 MB / 18.59 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004756/0.01727, allocations: 462 kB / 33.32 MB, free: 6.637 MB / 18.59 MB Notification: Performance of postOpt removeConstants (simulation): time 2.197e-05/0.01731, allocations: 88.73 kB / 33.41 MB, free: 6.543 MB / 18.59 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.01734, allocations: 6.719 kB / 33.42 MB, free: 6.543 MB / 18.59 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.978e-05/0.01744, allocations: 14.44 kB / 33.43 MB, free: 6.543 MB / 18.59 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.86e-05/0.01753, allocations: 35.45 kB / 33.46 MB, free: 6.543 MB / 18.59 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.01756, allocations: 6.406 kB / 33.47 MB, free: 6.543 MB / 18.59 MB Notification: Performance of sorting global known variables: time 5.306e-05/0.01761, allocations: 111.9 kB / 33.58 MB, free: 6.465 MB / 18.59 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01762, allocations: 3.906 kB / 33.58 MB, free: 6.465 MB / 18.59 MB Notification: Performance of remove unused functions: time 0.0003142/0.01794, allocations: 86.7 kB / 33.67 MB, free: 6.461 MB / 18.59 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (P1.t_) * Number of discrete variables: 4 (T1.activation.active,T1.activation.weaklyOutputActiveVec[1],P1.fireIn[1],P1.feeding) * Number of discrete states: 3 (T1.activation.weaklyOutputActiveVec[1],T1.activation.active,P1.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007239/0.01867, allocations: 1.043 MB / 34.71 MB, free: 5.762 MB / 18.59 MB Notification: Performance of simCode: created initialization part: time 0.0003277/0.01901, allocations: 257 kB / 34.96 MB, free: 5.531 MB / 18.59 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.01902, allocations: 3.719 kB / 34.97 MB, free: 5.531 MB / 18.59 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.01917, allocations: 165.9 kB / 35.13 MB, free: 5.359 MB / 18.59 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.01943, allocations: 19.75 kB / 35.15 MB, free: 5.344 MB / 18.59 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.02143, allocations: 2.331 MB / 37.48 MB, free: 2.93 MB / 18.59 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.02161, allocations: 0.7592 MB / 38.24 MB, free: 2.145 MB / 18.59 MB Notification: Performance of simCode: alias equations: time 0.0001296/0.02174, allocations: 69.3 kB / 38.31 MB, free: 2.074 MB / 18.59 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.092e-05/0.02184, allocations: 71.39 kB / 38.38 MB, free: 2.008 MB / 18.59 MB Notification: Performance of SimCode: time 2.4e-07/0.02185, allocations: 0 / 38.38 MB, free: 2.008 MB / 18.59 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1555/0.1774, allocations: 3.951 MB / 42.33 MB, free: 5.535 MB / 18.59 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/0.1776, allocations: 166.9 kB / 42.49 MB, free: 5.281 MB / 18.59 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/2.025, allocations: 0 / 42.49 MB, free: 5.281 MB / 18.59 MB (rm -f ConPNlib_ConPNlib.Examples.Test3.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test3.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test3.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test3.fmu > ConPNlib_ConPNlib.Examples.Test3.pipe 2>&1)