Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test8.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.Test8,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test8",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test8,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test8",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01687/0.01687, allocations: 1.359 MB / 16.31 MB, free: 5.352 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 2.066e-05/2.072e-05, allocations: 4 kB / 23.31 MB, free: 3.992 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0006863/0.0007421, allocations: 359.3 kB / 23.66 MB, free: 3.828 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test8): time 0.001815/0.002575, allocations: 1.462 MB / 25.12 MB, free: 2.512 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.002015/0.004624, allocations: 0.848 MB / 25.97 MB, free: 1.668 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003574/0.005025, allocations: 7.938 kB / 25.98 MB, free: 1.66 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0003742/0.005413, allocations: 139.1 kB / 26.12 MB, free: 1.523 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.001238/0.006665, allocations: 318.4 kB / 26.43 MB, free: 1.215 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.006969, allocations: 63.91 kB / 26.49 MB, free: 1.152 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0006254/0.00761, allocations: 395.1 kB / 26.87 MB, free: 0.7656 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004353/0.008062, allocations: 258.6 kB / 27.13 MB, free: 0.4922 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002496/0.008326, allocations: 214.8 kB / 27.34 MB, free: 288 kB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002773/0.008617, allocations: 230.6 kB / 27.56 MB, free: 56 kB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 7.135e-05/0.008702, allocations: 27.98 kB / 27.59 MB, free: 28 kB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005101/0.009222, allocations: 187.7 kB / 27.77 MB, free: 4.488 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.009429, allocations: 123.5 kB / 27.89 MB, free: 4.367 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.009597, allocations: 125.3 kB / 28.02 MB, free: 4.238 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.0009978/0.01061, allocations: 0.5966 MB / 28.61 MB, free: 3.641 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.01063, allocations: 0 / 28.61 MB, free: 3.641 MB / 18.57 MB Notification: Performance of FrontEnd: time 2.515e-06/0.01064, allocations: 0 / 28.61 MB, free: 3.641 MB / 18.57 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.01066, allocations: 0 / 28.61 MB, free: 3.641 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.001479/0.01215, allocations: 0.8494 MB / 29.46 MB, free: 2.73 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.01221, allocations: 12.3 kB / 29.47 MB, free: 2.719 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002714/0.01249, allocations: 143.5 kB / 29.61 MB, free: 2.57 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002147/0.01272, allocations: 79.92 kB / 29.69 MB, free: 2.492 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008578/0.01359, allocations: 415.9 kB / 30.1 MB, free: 2.047 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.01371, allocations: 70.33 kB / 30.17 MB, free: 1.977 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002073/0.01393, allocations: 92.08 kB / 30.26 MB, free: 1.891 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003044/0.01698, allocations: 1.203 MB / 31.46 MB, free: 0.6641 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.516e-05/0.01705, allocations: 4.344 kB / 31.46 MB, free: 0.6602 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001387/0.01719, allocations: 48.92 kB / 31.51 MB, free: 0.6133 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002143/0.01742, allocations: 73.95 kB / 31.58 MB, free: 0.5391 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01362/0.03105, allocations: 0.8676 MB / 32.45 MB, free: 6.641 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004268/0.03537, allocations: 2.562 MB / 35.01 MB, free: 5.285 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.0368, allocations: 0.6374 MB / 35.65 MB, free: 4.906 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005196/0.03734, allocations: 0.5988 MB / 36.25 MB, free: 4.219 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.03738, allocations: 34.86 kB / 36.28 MB, free: 4.176 MB / 18.57 MB Notification: Performance of pre-optimization done (n=41): time 3.427e-06/0.03739, allocations: 0 / 36.28 MB, free: 4.176 MB / 18.57 MB Notification: Performance of matching and sorting (n=41): time 0.002464/0.03986, allocations: 1.246 MB / 37.53 MB, free: 2.871 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.716e-05/0.03999, allocations: 212.2 kB / 37.74 MB, free: 2.621 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003861/0.04039, allocations: 314.3 kB / 38.04 MB, free: 2.305 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 6.943e-05/0.04047, allocations: 49.69 kB / 38.09 MB, free: 2.25 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002339/0.04072, allocations: 338.5 kB / 38.42 MB, free: 1.922 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.04087, allocations: 126.8 kB / 38.55 MB, free: 1.801 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.814e-05/0.04093, allocations: 16 kB / 38.56 MB, free: 1.785 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 8.06e-05/0.04102, allocations: 346.8 kB / 38.9 MB, free: 1.438 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007259/0.04175, allocations: 300.9 kB / 39.2 MB, free: 1.145 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008088/0.04257, allocations: 457.7 kB / 39.64 MB, free: 0.6367 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000745/0.04334, allocations: 372.3 kB / 40.01 MB, free: 268 kB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.04336, allocations: 0 / 40.01 MB, free: 268 kB / 18.57 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.01593/0.0593, allocations: 0.9811 MB / 40.99 MB, free: 5.449 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/0.05944, allocations: 84.11 kB / 41.07 MB, free: 5.387 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.05947, allocations: 7.047 kB / 41.08 MB, free: 5.387 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.507e-05/0.0595, allocations: 6.906 kB / 41.08 MB, free: 5.387 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004935/0.06001, allocations: 91.78 kB / 41.17 MB, free: 5.387 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.789e-05/0.06004, allocations: 12.19 kB / 41.18 MB, free: 5.387 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004943/0.06054, allocations: 88.05 kB / 41.27 MB, free: 5.387 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.496e-05/0.06065, allocations: 34.44 kB / 41.3 MB, free: 5.387 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.P1.fireOut[1],$PRE.P1.fireOut[2],P1.emptying,$PRE.P2.fireIn[1],P2.feeding,$PRE.P3.fireIn[1],P3.feeding,P1.outTransition[2].arcType,P1.outTransition[1].arcType,P1.fireOut[1],P1.fireOut[2],P2.fireIn[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],T1.activation.arcType[1],T2.activation.arcType[1],T2.activation.emptied[1],T1.activation.emptied[1],T1.activation.fed[1],T2.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 60 * Array equations: 3 * Algorithm blocks: 2 * 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.0005826/0.06124, allocations: 398.1 kB / 41.69 MB, free: 5.211 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.06136, allocations: 40.34 kB / 41.73 MB, free: 5.211 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002034/0.0634, allocations: 0.8664 MB / 42.6 MB, free: 5.098 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.101e-05/0.06347, allocations: 13.53 kB / 42.61 MB, free: 5.098 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.06348, allocations: 0 / 42.61 MB, free: 5.098 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.0635, allocations: 3.516 kB / 42.62 MB, free: 5.098 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00282/0.06633, allocations: 1.543 MB / 44.16 MB, free: 3.805 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.06637, allocations: 0 / 44.16 MB, free: 3.805 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000417/0.0668, allocations: 63.7 kB / 44.22 MB, free: 3.746 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.797e-06/0.06682, allocations: 4.75 kB / 44.22 MB, free: 3.742 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.538e-05/0.06688, allocations: 12 kB / 44.24 MB, free: 3.73 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.0669, allocations: 0 / 44.24 MB, free: 3.73 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.06691, allocations: 10.98 kB / 44.25 MB, free: 3.723 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002633/0.06955, allocations: 1.264 MB / 45.51 MB, free: 2.457 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 8.437e-05/0.06967, allocations: 110.2 kB / 45.62 MB, free: 2.352 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.06979, allocations: 23.98 kB / 45.64 MB, free: 2.328 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003856/0.07019, allocations: 52.61 kB / 45.69 MB, free: 2.281 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003082/0.07051, allocations: 114.9 kB / 45.81 MB, free: 2.172 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.072e-05/0.07059, allocations: 20 kB / 45.83 MB, free: 2.152 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0002294/0.07083, allocations: 197.9 kB / 46.02 MB, free: 1.961 MB / 18.57 MB Notification: Performance of sort global known variables: time 3.81e-07/0.07084, allocations: 0 / 46.02 MB, free: 1.961 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0008471/0.0717, allocations: 234.3 kB / 46.25 MB, free: 1.746 MB / 18.57 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (P1.t_,P2.t_,P3.t_) * Number of discrete variables: 14 (P1.fireOut[1],P1.fireOut[2],P1.emptying,P2.fireIn[1],P2.feeding,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P3.feeding) * Number of discrete states: 10 (T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,P1.fireOut[1],P1.fireOut[2],P2.fireIn[1],P3.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 3 * Algorithm blocks: 2 * 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.0158/0.08751, allocations: 1.92 MB / 48.17 MB, free: 5.012 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.08963, allocations: 0.9183 MB / 49.09 MB, free: 4.887 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.08966, allocations: 3.594 kB / 49.09 MB, free: 4.887 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0008864/0.09056, allocations: 0.5045 MB / 49.59 MB, free: 4.762 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004295/0.09101, allocations: 44.59 kB / 49.64 MB, free: 4.758 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007729/0.09875, allocations: 5.789 MB / 55.43 MB, free: 5.719 MB / 24.77 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009595/0.09976, allocations: 1.027 MB / 56.45 MB, free: 4.672 MB / 24.77 MB Notification: Performance of simCode: alias equations: time 0.0007675/0.1005, allocations: 189.8 kB / 56.64 MB, free: 4.496 MB / 24.77 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005216/0.1011, allocations: 239.9 kB / 56.87 MB, free: 4.262 MB / 24.77 MB Notification: Performance of SimCode: time 7.81e-07/0.1011, allocations: 0 / 56.87 MB, free: 4.262 MB / 24.77 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06016/0.1613, allocations: 10.85 MB / 67.72 MB, free: 6.234 MB / 24.77 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000308/0.1617, allocations: 137.1 kB / 67.86 MB, free: 6 MB / 24.77 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.669/2.831, allocations: 4 kB / 67.86 MB, free: 5.996 MB / 24.77 MB (rm -f ConPNlib_ConPNlib.Examples.Test8.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test8.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test8.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test8.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test8_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test8.fmu > ConPNlib_ConPNlib.Examples.Test8.pipe 2>&1)