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.01696/0.01696, allocations: 1.354 MB / 16.31 MB, free: 4.941 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.591e-05/1.59e-05, allocations: 0 / 23.31 MB, free: 3.66 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.000732/0.0007923, allocations: 366.5 kB / 23.67 MB, free: 3.48 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test4): time 0.001595/0.002406, allocations: 1.189 MB / 24.86 MB, free: 2.562 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.004189, allocations: 0.7432 MB / 25.6 MB, free: 1.82 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002834/0.00451, allocations: 7.938 kB / 25.61 MB, free: 1.812 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0002983/0.00482, allocations: 99.36 kB / 25.7 MB, free: 1.715 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.00105/0.005884, allocations: 274 kB / 25.97 MB, free: 1.449 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.006139, allocations: 55.92 kB / 26.03 MB, free: 1.395 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0004368/0.006591, allocations: 315.3 kB / 26.33 MB, free: 1.086 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003557/0.006961, allocations: 197.1 kB / 26.53 MB, free: 0.8828 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.007164, allocations: 175 kB / 26.7 MB, free: 0.7109 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002114/0.007388, allocations: 178.9 kB / 26.87 MB, free: 0.5352 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 5.745e-05/0.007459, allocations: 23.94 kB / 26.9 MB, free: 0.5117 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003942/0.007864, allocations: 183.8 kB / 27.08 MB, free: 340 kB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.008003, allocations: 103.6 kB / 27.18 MB, free: 236 kB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 9.363e-05/0.008109, allocations: 105.4 kB / 27.28 MB, free: 124 kB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0008456/0.008966, allocations: 0.4991 MB / 27.78 MB, free: 4.266 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.008991, allocations: 4 kB / 27.78 MB, free: 4.262 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.723e-06/0.009001, allocations: 0 / 27.78 MB, free: 4.262 MB / 18.57 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.009018, allocations: 0 / 27.78 MB, free: 4.262 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.001253/0.01028, allocations: 0.736 MB / 28.52 MB, free: 3.469 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.01034, allocations: 12.3 kB / 28.53 MB, free: 3.457 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000193/0.01054, allocations: 117.6 kB / 28.65 MB, free: 3.336 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.01071, allocations: 64.11 kB / 28.71 MB, free: 3.273 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006738/0.0114, allocations: 360 kB / 29.06 MB, free: 2.883 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.908e-05/0.01149, allocations: 57.64 kB / 29.12 MB, free: 2.824 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.01166, allocations: 68.33 kB / 29.18 MB, free: 2.758 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002304/0.01398, allocations: 0.9312 MB / 30.11 MB, free: 1.809 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/0.01403, allocations: 0 / 30.11 MB, free: 1.809 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.923e-05/0.01414, allocations: 31.94 kB / 30.14 MB, free: 1.777 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001694/0.01432, allocations: 65.27 kB / 30.21 MB, free: 1.715 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001842/0.01617, allocations: 0.6609 MB / 30.87 MB, free: 1.051 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01475/0.03094, allocations: 1.771 MB / 32.64 MB, free: 6.59 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.03204, allocations: 482.5 kB / 33.11 MB, free: 6.469 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006901/0.03275, allocations: 0.8594 MB / 33.97 MB, free: 5.531 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.0328, allocations: 42.08 kB / 34.01 MB, free: 5.492 MB / 18.57 MB Notification: Performance of pre-optimization done (n=33): time 3.406e-06/0.03281, allocations: 2.344 kB / 34.01 MB, free: 5.492 MB / 18.57 MB Notification: Performance of matching and sorting (n=33): time 0.00378/0.0366, allocations: 1.282 MB / 35.3 MB, free: 4.934 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.099e-05/0.03673, allocations: 185.1 kB / 35.48 MB, free: 4.727 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003227/0.03707, allocations: 263.2 kB / 35.73 MB, free: 4.535 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 5.095e-05/0.03713, allocations: 41.69 kB / 35.77 MB, free: 4.496 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.03734, allocations: 275.1 kB / 36.04 MB, free: 4.27 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.03747, allocations: 115 kB / 36.15 MB, free: 4.18 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.995e-05/0.03753, allocations: 11.91 kB / 36.17 MB, free: 4.172 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 7.325e-05/0.03761, allocations: 338.2 kB / 36.5 MB, free: 3.84 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005859/0.0382, allocations: 242.9 kB / 36.73 MB, free: 3.609 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006346/0.03885, allocations: 350.7 kB / 37.08 MB, free: 3.227 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006169/0.03948, allocations: 313.1 kB / 37.38 MB, free: 2.91 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.03951, allocations: 0 / 37.38 MB, free: 2.91 MB / 18.57 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001908/0.04142, allocations: 0.8547 MB / 38.24 MB, free: 2.055 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 8.264e-05/0.04153, allocations: 90.66 kB / 38.33 MB, free: 1.957 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.04155, allocations: 4.344 kB / 38.33 MB, free: 1.953 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001704/0.04327, allocations: 248.6 kB / 38.57 MB, free: 1.707 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003162/0.0436, allocations: 59.09 kB / 38.63 MB, free: 1.652 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007942/0.04441, allocations: 0.7375 MB / 39.37 MB, free: 0.8906 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000403/0.04483, allocations: 74.89 kB / 39.44 MB, free: 0.8203 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-05/0.04492, allocations: 24 kB / 39.46 MB, free: 0.7969 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.000523/0.04545, allocations: 347.6 kB / 39.8 MB, free: 448 kB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.692e-05/0.04555, allocations: 27.72 kB / 39.83 MB, free: 420 kB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01444/0.06, allocations: 0.8398 MB / 40.67 MB, free: 6.621 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.795e-05/0.06009, allocations: 8.469 kB / 40.68 MB, free: 6.621 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.06011, allocations: 0.7188 kB / 40.68 MB, free: 6.621 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.06013, allocations: 4.844 kB / 40.68 MB, free: 6.621 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002892/0.06303, allocations: 1.371 MB / 42.06 MB, free: 6.211 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.06308, allocations: 0 / 42.06 MB, free: 6.211 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000247/0.06334, allocations: 37.55 kB / 42.09 MB, free: 6.211 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001275/0.06463, allocations: 276.5 kB / 42.36 MB, free: 6.129 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.978e-05/0.06474, allocations: 15.7 kB / 42.38 MB, free: 6.121 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008435/0.06559, allocations: 0.7596 MB / 43.14 MB, free: 5.48 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.06562, allocations: 7.766 kB / 43.14 MB, free: 5.477 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002466/0.0681, allocations: 1.154 MB / 44.3 MB, free: 4.316 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 7.264e-05/0.0682, allocations: 105.8 kB / 44.4 MB, free: 4.215 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.394e-05/0.06831, allocations: 20.7 kB / 44.42 MB, free: 4.195 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003178/0.06864, allocations: 47.06 kB / 44.47 MB, free: 4.156 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002444/0.06889, allocations: 79.91 kB / 44.55 MB, free: 4.078 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.006e-05/0.06897, allocations: 24.92 kB / 44.57 MB, free: 4.055 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001881/0.06916, allocations: 164.5 kB / 44.73 MB, free: 3.891 MB / 18.57 MB Notification: Performance of sort global known variables: time 4.61e-07/0.06918, allocations: 0 / 44.73 MB, free: 3.891 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0007542/0.06994, allocations: 200 kB / 44.93 MB, free: 3.711 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.002939/0.07289, allocations: 1.792 MB / 46.72 MB, free: 1.906 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.07456, allocations: 0.7635 MB / 47.48 MB, free: 1.137 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.07459, allocations: 3.75 kB / 47.49 MB, free: 1.137 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.01257/0.08717, allocations: 453.8 kB / 47.93 MB, free: 6.016 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/0.0876, allocations: 31.61 kB / 47.96 MB, free: 6.008 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006016/0.09363, allocations: 4.527 MB / 52.49 MB, free: 3.09 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.09411, allocations: 0.9496 MB / 53.44 MB, free: 2.125 MB / 18.57 MB Notification: Performance of simCode: alias equations: time 0.000321/0.09445, allocations: 87.5 kB / 53.52 MB, free: 2.043 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002423/0.0947, allocations: 167.4 kB / 53.69 MB, free: 1.879 MB / 18.57 MB Notification: Performance of SimCode: time 1.302e-06/0.09472, allocations: 0 / 53.69 MB, free: 1.879 MB / 18.57 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05448/0.1492, allocations: 10.24 MB / 63.93 MB, free: 4.594 MB / 24.77 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003024/0.1496, allocations: 180.8 kB / 64.11 MB, free: 4.348 MB / 24.77 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.677/2.826, allocations: 0 / 64.11 MB, free: 4.348 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)