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.01694/0.01694, allocations: 1.355 MB / 16.31 MB, free: 4.941 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.618e-05/1.619e-05, allocations: 0 / 23.31 MB, free: 3.746 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0007515/0.0007982, allocations: 357.4 kB / 23.66 MB, free: 3.57 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test2): time 0.001039/0.001855, allocations: 0.7058 MB / 24.37 MB, free: 3.047 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.003005, allocations: 0.5456 MB / 24.91 MB, free: 2.504 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.003152, allocations: 0.5 kB / 24.91 MB, free: 2.504 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0001842/0.003349, allocations: 56.64 kB / 24.97 MB, free: 2.449 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0006787/0.00404, allocations: 186.3 kB / 25.15 MB, free: 2.27 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001117/0.004168, allocations: 27.91 kB / 25.18 MB, free: 2.242 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0002162/0.004398, allocations: 147.7 kB / 25.32 MB, free: 2.098 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001917/0.004602, allocations: 71.66 kB / 25.39 MB, free: 2.023 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.004726, allocations: 79.56 kB / 25.47 MB, free: 1.945 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.004861, allocations: 83.47 kB / 25.55 MB, free: 1.863 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 2.714e-05/0.004901, allocations: 8 kB / 25.56 MB, free: 1.855 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002287/0.005139, allocations: 113 kB / 25.67 MB, free: 1.746 MB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 6.289e-05/0.005217, allocations: 39.89 kB / 25.71 MB, free: 1.707 MB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 4.508e-05/0.005273, allocations: 53.58 kB / 25.76 MB, free: 1.648 MB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0003056/0.005589, allocations: 231.6 kB / 25.99 MB, free: 1.422 MB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.005604, allocations: 0 / 25.99 MB, free: 1.422 MB / 13.93 MB Notification: Performance of FrontEnd: time 1.873e-06/0.005615, allocations: 0 / 25.99 MB, free: 1.422 MB / 13.93 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.005628, allocations: 0 / 25.99 MB, free: 1.422 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.0005995/0.006235, allocations: 0.4884 MB / 26.48 MB, free: 0.8828 MB / 13.93 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.006286, allocations: 12.3 kB / 26.49 MB, free: 0.8711 MB / 13.93 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.33e-05/0.006369, allocations: 66.7 kB / 26.55 MB, free: 0.7969 MB / 13.93 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.588e-05/0.006445, allocations: 20.67 kB / 26.57 MB, free: 0.7773 MB / 13.93 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/0.006738, allocations: 247.8 kB / 26.82 MB, free: 0.4961 MB / 13.93 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.306e-05/0.006783, allocations: 20.89 kB / 26.84 MB, free: 488 kB / 13.93 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.075e-05/0.006855, allocations: 32.09 kB / 26.87 MB, free: 460 kB / 13.93 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007614/0.007626, allocations: 360.3 kB / 27.22 MB, free: 84 kB / 13.93 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.007658, allocations: 0 / 27.22 MB, free: 84 kB / 13.93 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.839e-05/0.007707, allocations: 15.95 kB / 27.24 MB, free: 68 kB / 13.93 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.216e-05/0.007778, allocations: 24.48 kB / 27.26 MB, free: 44 kB / 13.93 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006972/0.008486, allocations: 246.1 kB / 27.5 MB, free: 4.449 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.01034, allocations: 0.8602 MB / 28.36 MB, free: 3.5 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005355/0.01092, allocations: 165.1 kB / 28.52 MB, free: 3.332 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00047/0.01141, allocations: 433.4 kB / 28.94 MB, free: 2.816 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.01146, allocations: 34.52 kB / 28.98 MB, free: 2.773 MB / 18.57 MB Notification: Performance of pre-optimization done (n=14): time 2.635e-06/0.01147, allocations: 0 / 28.98 MB, free: 2.773 MB / 18.57 MB Notification: Performance of matching and sorting (n=14): time 0.001088/0.01257, allocations: 420.5 kB / 29.39 MB, free: 2.332 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.859e-05/0.0127, allocations: 118.8 kB / 29.5 MB, free: 2.191 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002143/0.01293, allocations: 158.9 kB / 29.66 MB, free: 2.023 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.01298, allocations: 29.7 kB / 29.69 MB, free: 1.988 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.01312, allocations: 155.9 kB / 29.84 MB, free: 1.828 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 6.739e-05/0.0132, allocations: 47.34 kB / 29.89 MB, free: 1.781 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.365e-05/0.01323, allocations: 4 kB / 29.89 MB, free: 1.777 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.01338, allocations: 326.8 kB / 30.21 MB, free: 1.449 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002874/0.01368, allocations: 96.27 kB / 30.3 MB, free: 1.355 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003381/0.01403, allocations: 142.3 kB / 30.44 MB, free: 1.199 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003157/0.01436, allocations: 125.7 kB / 30.57 MB, free: 1.07 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.01438, allocations: 0 / 30.57 MB, free: 1.07 MB / 18.57 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009/0.01529, allocations: 335 kB / 30.89 MB, free: 0.7305 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 6.33e-05/0.01537, allocations: 45.64 kB / 30.94 MB, free: 0.6797 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.01539, allocations: 4.125 kB / 30.94 MB, free: 0.6758 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.01542, allocations: 4 kB / 30.95 MB, free: 0.6719 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002332/0.01566, allocations: 27.92 kB / 30.97 MB, free: 0.6445 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.01569, allocations: 11.92 kB / 30.98 MB, free: 0.6328 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.01589, allocations: 23.84 kB / 31.01 MB, free: 0.6094 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.536e-05/0.01595, allocations: 15.98 kB / 31.02 MB, free: 0.5938 MB / 18.57 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003094/0.01627, allocations: 200.1 kB / 31.22 MB, free: 392 kB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.03e-05/0.01634, allocations: 15.81 kB / 31.23 MB, free: 376 kB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001011/0.01736, allocations: 348.5 kB / 31.57 MB, free: 12 kB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.159e-05/0.01741, allocations: 7.984 kB / 31.58 MB, free: 4 kB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.01742, allocations: 0 / 31.58 MB, free: 4 kB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.01744, allocations: 0 / 31.58 MB, free: 4 kB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01185/0.02929, allocations: 0.6437 MB / 32.23 MB, free: 7.344 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.02934, allocations: 0 / 32.23 MB, free: 7.344 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.02955, allocations: 33.14 kB / 32.26 MB, free: 7.344 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.02957, allocations: 2.531 kB / 32.26 MB, free: 7.344 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.0296, allocations: 6.875 kB / 32.27 MB, free: 7.344 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.02962, allocations: 3.375 kB / 32.27 MB, free: 7.344 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.02963, allocations: 0 / 32.27 MB, free: 7.344 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.03064, allocations: 491.3 kB / 32.75 MB, free: 7.184 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 4.65e-05/0.03071, allocations: 96.16 kB / 32.84 MB, free: 7.09 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.386e-05/0.03077, allocations: 18.17 kB / 32.86 MB, free: 7.09 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001814/0.03097, allocations: 16.58 kB / 32.88 MB, free: 7.09 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.03111, allocations: 30.2 kB / 32.91 MB, free: 7.09 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/0.03115, allocations: 11.09 kB / 32.92 MB, free: 7.09 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001024/0.03126, allocations: 117.1 kB / 33.03 MB, free: 7.012 MB / 18.57 MB Notification: Performance of sort global known variables: time 3.61e-07/0.03128, allocations: 0 / 33.03 MB, free: 7.012 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0004967/0.03178, allocations: 90.42 kB / 33.12 MB, free: 7.012 MB / 18.57 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 (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.001359/0.03315, allocations: 1.077 MB / 34.2 MB, free: 6.25 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.0006473/0.03382, allocations: 300 kB / 34.49 MB, free: 5.988 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.03384, allocations: 0 / 34.49 MB, free: 5.988 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0003019/0.03415, allocations: 173.2 kB / 34.66 MB, free: 5.828 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.03444, allocations: 28.09 kB / 34.69 MB, free: 5.812 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.03695, allocations: 1.82 MB / 36.51 MB, free: 3.98 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.03723, allocations: 0.7783 MB / 37.29 MB, free: 3.18 MB / 18.57 MB Notification: Performance of simCode: alias equations: time 0.0002689/0.03751, allocations: 84.31 kB / 37.37 MB, free: 3.109 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.03769, allocations: 75.39 kB / 37.44 MB, free: 3.035 MB / 18.57 MB Notification: Performance of SimCode: time 9.01e-07/0.0377, allocations: 0 / 37.44 MB, free: 3.035 MB / 18.57 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04106/0.07877, allocations: 4.361 MB / 41.8 MB, free: 5.789 MB / 18.57 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002664/0.07911, allocations: 158.1 kB / 41.96 MB, free: 5.539 MB / 18.57 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.447/2.526, allocations: 0 / 41.96 MB, free: 5.539 MB / 18.57 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)