Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test4.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.Test4,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test4,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01155/0.01155, allocations: 1.364 MB / 16.33 MB, free: 5.34 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.631e-05/1.66e-05, allocations: 0 / 23.34 MB, free: 3.949 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0005296/0.0005698, allocations: 354 kB / 23.68 MB, free: 3.793 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test4): time 0.001089/0.00167, allocations: 1.158 MB / 24.84 MB, free: 2.801 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.002856, allocations: 0.7412 MB / 25.58 MB, free: 2.062 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002849/0.003156, allocations: 7.938 kB / 25.59 MB, free: 2.055 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.003379, allocations: 83.38 kB / 25.67 MB, free: 1.973 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.000689/0.004077, allocations: 251.1 kB / 25.91 MB, free: 1.727 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001378/0.004227, allocations: 40.67 kB / 25.95 MB, free: 1.688 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0004068/0.004643, allocations: 470.6 kB / 26.41 MB, free: 1.227 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000249/0.004901, allocations: 199.7 kB / 26.61 MB, free: 1.02 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.00504, allocations: 179 kB / 26.78 MB, free: 0.8438 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.005205, allocations: 190.8 kB / 26.97 MB, free: 0.6562 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 3.972e-05/0.005252, allocations: 20 kB / 26.99 MB, free: 0.6367 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003171/0.005575, allocations: 203.7 kB / 27.19 MB, free: 448 kB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 8.135e-05/0.005667, allocations: 107.5 kB / 27.29 MB, free: 340 kB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 5.745e-05/0.005731, allocations: 97.45 kB / 27.39 MB, free: 236 kB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0004209/0.006158, allocations: 0.4952 MB / 27.88 MB, free: 4.379 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.006169, allocations: 0 / 27.88 MB, free: 4.379 MB / 18.57 MB Notification: Performance of FrontEnd: time 9.72e-07/0.006175, allocations: 0 / 27.88 MB, free: 4.379 MB / 18.57 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.006186, allocations: 0 / 27.88 MB, free: 4.379 MB / 18.57 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.0008428/0.007033, allocations: 0.7438 MB / 28.63 MB, free: 3.578 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.007076, allocations: 8.297 kB / 28.64 MB, free: 3.57 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001289/0.00721, allocations: 118.7 kB / 28.75 MB, free: 3.445 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.867e-05/0.007318, allocations: 69.33 kB / 28.82 MB, free: 3.379 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004297/0.007754, allocations: 362.3 kB / 29.17 MB, free: 2.988 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.474e-05/0.007827, allocations: 53.64 kB / 29.23 MB, free: 2.934 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.975e-05/0.007922, allocations: 64.33 kB / 29.29 MB, free: 2.871 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.009348, allocations: 0.9311 MB / 30.22 MB, free: 1.922 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.009376, allocations: 4.172 kB / 30.22 MB, free: 1.918 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.009491, allocations: 31.94 kB / 30.25 MB, free: 1.887 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.009611, allocations: 73.19 kB / 30.33 MB, free: 1.816 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009855/0.0106, allocations: 0.657 MB / 30.98 MB, free: 1.156 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008318/0.01893, allocations: 1.774 MB / 32.76 MB, free: 6.617 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006603/0.01963, allocations: 485 kB / 33.23 MB, free: 6.496 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003312/0.01997, allocations: 282.8 kB / 33.51 MB, free: 6.488 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005029/0.02048, allocations: 0.8561 MB / 34.36 MB, free: 5.551 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.991e-05/0.02051, allocations: 37.56 kB / 34.4 MB, free: 5.512 MB / 18.57 MB Notification: Performance of pre-optimization done (n=33): time 2.324e-06/0.02052, allocations: 0 / 34.4 MB, free: 5.512 MB / 18.57 MB Notification: Performance of matching and sorting (n=33): time 0.00219/0.02271, allocations: 1.134 MB / 35.53 MB, free: 5.105 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.155e-05/0.02281, allocations: 177.5 kB / 35.71 MB, free: 4.906 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.02307, allocations: 274.6 kB / 35.98 MB, free: 4.695 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.02312, allocations: 36.7 kB / 36.01 MB, free: 4.656 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.02327, allocations: 280.5 kB / 36.28 MB, free: 4.391 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 7.682e-05/0.02335, allocations: 103.9 kB / 36.39 MB, free: 4.289 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.376e-05/0.02339, allocations: 12.7 kB / 36.4 MB, free: 4.277 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 7.933e-05/0.02347, allocations: 338.8 kB / 36.73 MB, free: 3.938 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003224/0.0238, allocations: 244.7 kB / 36.97 MB, free: 3.695 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003522/0.02416, allocations: 350.6 kB / 37.31 MB, free: 3.309 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003353/0.02451, allocations: 320.3 kB / 37.62 MB, free: 2.992 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.02452, allocations: 0 / 37.62 MB, free: 2.992 MB / 18.57 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001034/0.02556, allocations: 0.8602 MB / 38.48 MB, free: 2.133 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 5.247e-05/0.02562, allocations: 83.39 kB / 38.57 MB, free: 2.039 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-06/0.02564, allocations: 0 / 38.57 MB, free: 2.039 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009087/0.02655, allocations: 248.7 kB / 38.81 MB, free: 1.793 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.02673, allocations: 59.91 kB / 38.87 MB, free: 1.734 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004815/0.02722, allocations: 0.7416 MB / 39.61 MB, free: 0.9727 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.02744, allocations: 72.11 kB / 39.68 MB, free: 0.9023 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.661e-05/0.02749, allocations: 27.98 kB / 39.71 MB, free: 0.875 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.P1.fireOut[1],P1.emptying,P2.outTransition[1].arcType,P1.outTransition[1].arcType,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],T1.activation.arcType[1],T2.activation.arcType[1],T1.activation.fed[1],T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 40 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002949/0.02779, allocations: 340.5 kB / 40.04 MB, free: 0.5234 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.437e-05/0.02786, allocations: 27.72 kB / 40.07 MB, free: 0.4961 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007573/0.03543, allocations: 0.8439 MB / 40.91 MB, free: 6.68 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.603e-05/0.03549, allocations: 7.5 kB / 40.92 MB, free: 6.68 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.03551, allocations: 5.562 kB / 40.92 MB, free: 6.68 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.03552, allocations: 2.062 kB / 40.92 MB, free: 6.68 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001609/0.03713, allocations: 1.376 MB / 42.3 MB, free: 6.223 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.03715, allocations: 3.156 kB / 42.3 MB, free: 6.223 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00013/0.03729, allocations: 25.88 kB / 42.33 MB, free: 6.223 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000793/0.03809, allocations: 275.7 kB / 42.6 MB, free: 6.195 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.376e-05/0.03814, allocations: 18.88 kB / 42.62 MB, free: 6.188 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004426/0.03859, allocations: 0.7619 MB / 43.38 MB, free: 5.609 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.0386, allocations: 3.984 kB / 43.38 MB, free: 5.605 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.03983, allocations: 1.161 MB / 44.54 MB, free: 4.465 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 4.406e-05/0.03989, allocations: 107.5 kB / 44.65 MB, free: 4.359 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.371e-05/0.03995, allocations: 15.98 kB / 44.66 MB, free: 4.344 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.04013, allocations: 42.92 kB / 44.71 MB, free: 4.305 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.04029, allocations: 87.19 kB / 44.79 MB, free: 4.223 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.04033, allocations: 21.2 kB / 44.81 MB, free: 4.203 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001053/0.04044, allocations: 168.5 kB / 44.98 MB, free: 4.035 MB / 18.57 MB Notification: Performance of sort global known variables: time 1.2e-07/0.04045, allocations: 3.938 kB / 44.98 MB, free: 4.035 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0004902/0.04095, allocations: 189.8 kB / 45.17 MB, free: 3.871 MB / 18.57 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (P1.t_,P2.t_) * Number of discrete variables: 11 (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]) * Number of discrete states: 8 (P1.fireOut[1],P2.fireIn[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,P2.fireOut[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 19 * 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 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.001654/0.0426, allocations: 1.796 MB / 46.96 MB, free: 2.066 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.0009133/0.04353, allocations: 0.7623 MB / 47.72 MB, free: 1.297 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.04354, allocations: 0 / 47.72 MB, free: 1.297 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0004373/0.04399, allocations: 456.2 kB / 48.17 MB, free: 0.8281 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.04432, allocations: 45.8 kB / 48.21 MB, free: 0.7852 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009376/0.05371, allocations: 2.896 MB / 51.11 MB, free: 5.293 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.05404, allocations: 0.9487 MB / 52.06 MB, free: 4.457 MB / 18.57 MB Notification: Performance of simCode: alias equations: time 0.0001701/0.05422, allocations: 83.61 kB / 52.14 MB, free: 4.387 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.05438, allocations: 160.2 kB / 52.3 MB, free: 4.23 MB / 18.57 MB Notification: Performance of SimCode: time 5.41e-07/0.05438, allocations: 4 kB / 52.3 MB, free: 4.227 MB / 18.57 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.08071, allocations: 10.26 MB / 62.56 MB, free: 5.953 MB / 24.77 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/0.08093, allocations: 184.8 kB / 62.74 MB, free: 5.707 MB / 24.77 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.941/2.022, allocations: 7.938 kB / 62.75 MB, free: 5.699 MB / 24.77 MB (rm -f ConPNlib_ConPNlib.Examples.Test4.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test4.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test4.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test4_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test4.fmu > ConPNlib_ConPNlib.Examples.Test4.pipe 2>&1)