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.01039/0.01039, allocations: 1.364 MB / 16.33 MB, free: 5.344 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.877e-05, allocations: 0 / 23.33 MB, free: 3.977 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0007538/0.0007918, allocations: 357.6 kB / 23.68 MB, free: 3.812 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test2): time 0.0007811/0.001582, allocations: 0.6841 MB / 24.37 MB, free: 3.277 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.0007917/0.002385, allocations: 0.5455 MB / 24.91 MB, free: 2.734 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.002511, allocations: 0 / 24.91 MB, free: 2.734 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.002681, allocations: 44.38 kB / 24.96 MB, free: 2.691 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0004784/0.003167, allocations: 182.4 kB / 25.13 MB, free: 2.516 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 6.751e-05/0.003246, allocations: 23.97 kB / 25.16 MB, free: 2.492 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0001942/0.003448, allocations: 211.4 kB / 25.36 MB, free: 2.285 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.003592, allocations: 75.3 kB / 25.44 MB, free: 2.203 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 8.115e-05/0.00368, allocations: 83.56 kB / 25.52 MB, free: 2.121 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.003803, allocations: 83.42 kB / 25.6 MB, free: 2.039 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/0.003833, allocations: 8 kB / 25.61 MB, free: 2.031 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001879/0.004026, allocations: 127.8 kB / 25.73 MB, free: 1.906 MB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 5.149e-05/0.004086, allocations: 39.84 kB / 25.77 MB, free: 1.867 MB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 3.777e-05/0.00413, allocations: 57.58 kB / 25.83 MB, free: 1.805 MB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.000213/0.004349, allocations: 227.6 kB / 26.05 MB, free: 1.582 MB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.004359, allocations: 0 / 26.05 MB, free: 1.582 MB / 13.93 MB Notification: Performance of FrontEnd: time 1.243e-06/0.004366, allocations: 0 / 26.05 MB, free: 1.582 MB / 13.93 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.004376, allocations: 0 / 26.05 MB, free: 1.582 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.0005456/0.004926, allocations: 0.4923 MB / 26.54 MB, free: 1.039 MB / 13.93 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.004969, allocations: 8.297 kB / 26.55 MB, free: 1.031 MB / 13.93 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.143e-05/0.005036, allocations: 62.69 kB / 26.61 MB, free: 0.9609 MB / 13.93 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.943e-05/0.005093, allocations: 25.89 kB / 26.64 MB, free: 0.9375 MB / 13.93 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/0.005314, allocations: 247.8 kB / 26.88 MB, free: 0.6562 MB / 13.93 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.005347, allocations: 16.91 kB / 26.9 MB, free: 0.6406 MB / 13.93 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.005392, allocations: 28.33 kB / 26.92 MB, free: 0.6133 MB / 13.93 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004936/0.005891, allocations: 368.1 kB / 27.28 MB, free: 244 kB / 13.93 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.005914, allocations: 176 / 27.28 MB, free: 244 kB / 13.93 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.651e-05/0.005946, allocations: 15.94 kB / 27.3 MB, free: 228 kB / 13.93 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.875e-05/0.00599, allocations: 20.55 kB / 27.32 MB, free: 208 kB / 13.93 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003823/0.006378, allocations: 246 kB / 27.56 MB, free: 4.609 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001393/0.007781, allocations: 0.8625 MB / 28.42 MB, free: 3.66 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003457/0.008144, allocations: 158.6 kB / 28.58 MB, free: 3.496 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001858/0.008342, allocations: 96.8 kB / 28.67 MB, free: 3.398 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004821/0.008833, allocations: 437.5 kB / 29.1 MB, free: 2.879 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.023e-05/0.008889, allocations: 33.56 kB / 29.13 MB, free: 2.84 MB / 18.57 MB Notification: Performance of pre-optimization done (n=14): time 1.734e-06/0.0089, allocations: 7.938 kB / 29.14 MB, free: 2.832 MB / 18.57 MB Notification: Performance of matching and sorting (n=14): time 0.000765/0.009671, allocations: 331.1 kB / 29.46 MB, free: 2.496 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.888e-05/0.009761, allocations: 114.8 kB / 29.57 MB, free: 2.359 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.009946, allocations: 162.9 kB / 29.73 MB, free: 2.188 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.009989, allocations: 33.69 kB / 29.77 MB, free: 2.148 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.01014, allocations: 159.9 kB / 29.92 MB, free: 1.984 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 5.178e-05/0.0102, allocations: 47.36 kB / 29.97 MB, free: 1.938 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.253e-05/0.01021, allocations: 0 / 29.97 MB, free: 1.938 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.01038, allocations: 326.8 kB / 30.29 MB, free: 1.609 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.01057, allocations: 88.33 kB / 30.37 MB, free: 1.523 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.0108, allocations: 150.3 kB / 30.52 MB, free: 1.359 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.01101, allocations: 117.7 kB / 30.63 MB, free: 1.238 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.01102, allocations: 0 / 30.63 MB, free: 1.238 MB / 18.57 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005279/0.01155, allocations: 343 kB / 30.97 MB, free: 0.8906 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 5.102e-05/0.01162, allocations: 41.66 kB / 31.01 MB, free: 0.8438 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.01163, allocations: 0 / 31.01 MB, free: 0.8438 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.01165, allocations: 7.938 kB / 31.02 MB, free: 0.8359 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.01182, allocations: 31.97 kB / 31.05 MB, free: 0.8047 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.01184, allocations: 0.8594 kB / 31.05 MB, free: 0.8047 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.01196, allocations: 31.95 kB / 31.08 MB, free: 0.7734 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-05/0.012, allocations: 16 kB / 31.1 MB, free: 0.7578 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.0002252/0.01223, allocations: 196.3 kB / 31.29 MB, free: 0.5508 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.184e-05/0.01228, allocations: 15.81 kB / 31.3 MB, free: 0.5352 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006644/0.01295, allocations: 352.5 kB / 31.65 MB, free: 180 kB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/0.01298, allocations: 4 kB / 31.65 MB, free: 176 kB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.01299, allocations: 0 / 31.65 MB, free: 176 kB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.01301, allocations: 8.484 kB / 31.66 MB, free: 168 kB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008878/0.02189, allocations: 0.6457 MB / 32.31 MB, free: 7.168 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.02193, allocations: 3.438 kB / 32.31 MB, free: 7.168 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.02207, allocations: 23.52 kB / 32.33 MB, free: 7.168 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.02209, allocations: 1.188 kB / 32.33 MB, free: 7.168 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.02212, allocations: 11.72 kB / 32.35 MB, free: 7.168 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.02213, allocations: 1.344 kB / 32.35 MB, free: 7.168 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.02214, allocations: 0.8125 kB / 32.35 MB, free: 7.168 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005967/0.02274, allocations: 496.1 kB / 32.83 MB, free: 7.008 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 3.341e-05/0.02278, allocations: 88.2 kB / 32.92 MB, free: 6.914 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.02282, allocations: 11.7 kB / 32.93 MB, free: 6.914 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.02294, allocations: 21.09 kB / 32.95 MB, free: 6.914 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.72e-05/0.02305, allocations: 38.47 kB / 32.99 MB, free: 6.914 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.02308, allocations: 7.703 kB / 32.99 MB, free: 6.914 MB / 18.57 MB Notification: Performance of sorting global known variables: time 8.159e-05/0.02316, allocations: 117.8 kB / 33.11 MB, free: 6.836 MB / 18.57 MB Notification: Performance of sort global known variables: time 2.01e-07/0.02317, allocations: 0 / 33.11 MB, free: 6.836 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0004084/0.02359, allocations: 97.16 kB / 33.2 MB, free: 6.836 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.0009936/0.02459, allocations: 1.076 MB / 34.28 MB, free: 6.113 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.0004505/0.02505, allocations: 301.2 kB / 34.58 MB, free: 5.918 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.02506, allocations: 2.719 kB / 34.58 MB, free: 5.918 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.02526, allocations: 177.2 kB / 34.75 MB, free: 5.785 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.02556, allocations: 26.75 kB / 34.78 MB, free: 5.773 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.02724, allocations: 1.239 MB / 36.02 MB, free: 4.52 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.02749, allocations: 0.7666 MB / 36.78 MB, free: 3.73 MB / 18.57 MB Notification: Performance of simCode: alias equations: time 0.0001527/0.02765, allocations: 81.33 kB / 36.86 MB, free: 3.656 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.02778, allocations: 75.11 kB / 36.94 MB, free: 3.586 MB / 18.57 MB Notification: Performance of SimCode: time 5.21e-07/0.02779, allocations: 3.938 kB / 36.94 MB, free: 3.582 MB / 18.57 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0226/0.05039, allocations: 4.386 MB / 41.33 MB, free: 5.629 MB / 18.57 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/0.0506, allocations: 155.3 kB / 41.48 MB, free: 5.383 MB / 18.57 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.709/1.76, allocations: 0 / 41.48 MB, free: 5.383 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)