Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test2.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.Test2,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test2,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.009934/0.009934, allocations: 1.363 MB / 16.64 MB, free: 5.168 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 2.155e-05/2.174e-05, allocations: 0 / 23.81 MB, free: 3.656 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.00106/0.00112, allocations: 360.5 kB / 24.16 MB, free: 3.316 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test2): time 0.00139/0.002539, allocations: 0.7439 MB / 24.9 MB, free: 2.574 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.00426, allocations: 0.5866 MB / 25.49 MB, free: 1.988 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001966/0.004487, allocations: 6.156 kB / 25.49 MB, free: 1.984 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.000225/0.004738, allocations: 43.72 kB / 25.54 MB, free: 1.941 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0008091/0.005565, allocations: 183.4 kB / 25.72 MB, free: 1.762 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001191/0.005703, allocations: 33.23 kB / 25.75 MB, free: 1.73 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0003145/0.006034, allocations: 211.5 kB / 25.96 MB, free: 1.523 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002057/0.006257, allocations: 82.72 kB / 26.04 MB, free: 1.438 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.006392, allocations: 91.44 kB / 26.13 MB, free: 1.348 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.00657, allocations: 79.42 kB / 26.2 MB, free: 1.27 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 3.384e-05/0.006619, allocations: 8 kB / 26.21 MB, free: 1.262 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003052/0.006938, allocations: 139.8 kB / 26.35 MB, free: 1.125 MB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 8.594e-05/0.007042, allocations: 47.77 kB / 26.39 MB, free: 1.078 MB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.007173, allocations: 113.1 kB / 26.5 MB, free: 0.9609 MB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.000434/0.007623, allocations: 299.1 kB / 26.8 MB, free: 0.668 MB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.007645, allocations: 0 / 26.8 MB, free: 0.668 MB / 13.93 MB Notification: Performance of FrontEnd: time 1.543e-06/0.007657, allocations: 0 / 26.8 MB, free: 0.668 MB / 13.93 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.007672, allocations: 0 / 26.8 MB, free: 0.668 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0006471/0.008328, allocations: 0.4962 MB / 27.29 MB, free: 120 kB / 13.93 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.008386, allocations: 10.09 kB / 27.3 MB, free: 112 kB / 13.93 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.403e-05/0.008483, allocations: 66.72 kB / 27.37 MB, free: 36 kB / 13.93 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.32e-05/0.008596, allocations: 24.75 kB / 27.39 MB, free: 12 kB / 13.93 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004365/0.009048, allocations: 244 kB / 27.63 MB, free: 4.395 MB / 18.59 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.773e-05/0.009114, allocations: 20.92 kB / 27.65 MB, free: 4.375 MB / 18.59 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.599e-05/0.009204, allocations: 28.38 kB / 27.68 MB, free: 4.348 MB / 18.59 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009586/0.01018, allocations: 364.1 kB / 28.03 MB, free: 3.977 MB / 18.59 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.01021, allocations: 3.938 kB / 28.04 MB, free: 3.973 MB / 18.59 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.01027, allocations: 12 kB / 28.05 MB, free: 3.961 MB / 18.59 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-05/0.01036, allocations: 24.55 kB / 28.07 MB, free: 3.938 MB / 18.59 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007141/0.01109, allocations: 247.3 kB / 28.32 MB, free: 3.699 MB / 18.59 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.01304, allocations: 0.8601 MB / 29.18 MB, free: 2.75 MB / 18.59 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005409/0.0136, allocations: 170.5 kB / 29.34 MB, free: 2.574 MB / 18.59 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002627/0.01388, allocations: 92.81 kB / 29.43 MB, free: 2.48 MB / 18.59 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005286/0.01442, allocations: 429.5 kB / 29.85 MB, free: 1.969 MB / 18.59 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.01449, allocations: 38.56 kB / 29.89 MB, free: 1.922 MB / 18.59 MB Notification: Performance of pre-optimization done (n=14): time 3.457e-06/0.01451, allocations: 0 / 29.89 MB, free: 1.922 MB / 18.59 MB Notification: Performance of matching and sorting (n=14): time 0.001093/0.01561, allocations: 346.1 kB / 30.23 MB, free: 1.574 MB / 18.59 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.01574, allocations: 110.8 kB / 30.34 MB, free: 1.441 MB / 18.59 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002389/0.01599, allocations: 169.4 kB / 30.5 MB, free: 1.266 MB / 18.59 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.01605, allocations: 29.7 kB / 30.53 MB, free: 1.23 MB / 18.59 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.01621, allocations: 148 kB / 30.67 MB, free: 1.078 MB / 18.59 MB Notification: Performance of collectInitialBindings (initialization): time 7.641e-05/0.0163, allocations: 47.44 kB / 30.72 MB, free: 1.031 MB / 18.59 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.236e-05/0.01634, allocations: 8 kB / 30.73 MB, free: 1.023 MB / 18.59 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.01652, allocations: 326.8 kB / 31.05 MB, free: 0.6953 MB / 18.59 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002793/0.01681, allocations: 96.14 kB / 31.14 MB, free: 0.6016 MB / 18.59 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003203/0.01715, allocations: 138 kB / 31.28 MB, free: 460 kB / 18.59 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006131/0.01778, allocations: 263.6 kB / 31.53 MB, free: 168 kB / 18.59 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.0178, allocations: 0 / 31.53 MB, free: 168 kB / 18.59 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.01178/0.02959, allocations: 340.8 kB / 31.87 MB, free: 7.164 MB / 18.59 MB Notification: Performance of prepare postOptimizeDAE: time 7.832e-05/0.02972, allocations: 40.53 kB / 31.91 MB, free: 7.133 MB / 18.59 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.02975, allocations: 1.812 kB / 31.91 MB, free: 7.133 MB / 18.59 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.76e-05/0.02979, allocations: 3.312 kB / 31.91 MB, free: 7.133 MB / 18.59 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/0.03002, allocations: 26.97 kB / 31.94 MB, free: 7.133 MB / 18.59 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.03005, allocations: 12.72 kB / 31.95 MB, free: 7.133 MB / 18.59 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.03025, allocations: 28.55 kB / 31.98 MB, free: 7.133 MB / 18.59 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-05/0.0303, allocations: 16.16 kB / 31.99 MB, free: 7.133 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: 8 ($PRE.P1.fireOut[1],P1.emptying,P1.outTransition[1].arcType,T1.activation.active,T1.activation.weaklyInputActiveVec[1],P1.fireOut[1],T1.activation.arcType[1],T1.activation.fed[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 20 * 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.0003001/0.03061, allocations: 202.4 kB / 32.19 MB, free: 6.988 MB / 18.59 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.538e-05/0.0307, allocations: 15.56 kB / 32.21 MB, free: 6.988 MB / 18.59 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008996/0.03161, allocations: 322.2 kB / 32.52 MB, free: 6.922 MB / 18.59 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-05/0.03165, allocations: 5.578 kB / 32.53 MB, free: 6.922 MB / 18.59 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.03167, allocations: 3.844 kB / 32.53 MB, free: 6.922 MB / 18.59 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.03168, allocations: 3.844 kB / 32.53 MB, free: 6.922 MB / 18.59 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.03285, allocations: 0.6398 MB / 33.17 MB, free: 6.598 MB / 18.59 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.03287, allocations: 3.75 kB / 33.18 MB, free: 6.598 MB / 18.59 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001788/0.03306, allocations: 34.11 kB / 33.21 MB, free: 6.598 MB / 18.59 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.03308, allocations: 0 / 33.21 MB, free: 6.598 MB / 18.59 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.809e-05/0.03312, allocations: 4.453 kB / 33.22 MB, free: 6.598 MB / 18.59 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.03313, allocations: 0 / 33.22 MB, free: 6.598 MB / 18.59 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.03315, allocations: 5.75 kB / 33.22 MB, free: 6.594 MB / 18.59 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009225/0.03408, allocations: 497.3 kB / 33.71 MB, free: 6.434 MB / 18.59 MB Notification: Performance of postOpt removeConstants (simulation): time 4.487e-05/0.03414, allocations: 90.77 kB / 33.8 MB, free: 6.34 MB / 18.59 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.349e-05/0.03421, allocations: 8.531 kB / 33.8 MB, free: 6.34 MB / 18.59 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.03441, allocations: 15.81 kB / 33.82 MB, free: 6.34 MB / 18.59 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.03457, allocations: 40.75 kB / 33.86 MB, free: 6.336 MB / 18.59 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.03462, allocations: 3.5 kB / 33.86 MB, free: 6.336 MB / 18.59 MB Notification: Performance of sorting global known variables: time 9.935e-05/0.03473, allocations: 130 kB / 33.99 MB, free: 6.258 MB / 18.59 MB Notification: Performance of sort global known variables: time 3.11e-07/0.03475, allocations: 0 / 33.99 MB, free: 6.258 MB / 18.59 MB Notification: Performance of remove unused functions: time 0.0005871/0.03534, allocations: 82.83 kB / 34.07 MB, free: 6.254 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.weaklyInputActiveVec[1],P1.fireOut[1],P1.emptying) * Number of discrete states: 3 (T1.activation.weaklyInputActiveVec[1],T1.activation.active,P1.fireOut[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * 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.001325/0.03669, allocations: 1.069 MB / 35.14 MB, free: 5.289 MB / 18.59 MB Notification: Performance of simCode: created initialization part: time 0.000666/0.03737, allocations: 305 kB / 35.44 MB, free: 4.98 MB / 18.59 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.03739, allocations: 0 / 35.44 MB, free: 4.98 MB / 18.59 MB Notification: Performance of simCode: created simulation system equations: time 0.0003014/0.0377, allocations: 175 kB / 35.61 MB, free: 4.801 MB / 18.59 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004733/0.0382, allocations: 29.67 kB / 35.64 MB, free: 4.773 MB / 18.59 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003655/0.04187, allocations: 2.432 MB / 38.07 MB, free: 2.242 MB / 18.59 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.04212, allocations: 0.7751 MB / 38.84 MB, free: 1.441 MB / 18.59 MB Notification: Performance of simCode: alias equations: time 0.0002697/0.0424, allocations: 75.59 kB / 38.92 MB, free: 1.371 MB / 18.59 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.0426, allocations: 83.39 kB / 39 MB, free: 1.289 MB / 18.59 MB Notification: Performance of SimCode: time 5.91e-07/0.04261, allocations: 0 / 39 MB, free: 1.289 MB / 18.59 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02798/0.0706, allocations: 4.249 MB / 43.25 MB, free: 4.445 MB / 18.59 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001399/0.07078, allocations: 163.3 kB / 43.41 MB, free: 4.188 MB / 18.59 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.882/1.953, allocations: 3.984 kB / 43.41 MB, free: 4.184 MB / 18.59 MB (rm -f ConPNlib_ConPNlib.Examples.Test2.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test2.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test2.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test2.fmu > ConPNlib_ConPNlib.Examples.Test2.pipe 2>&1)