Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test5.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.Test5,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test5,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01647/0.01647, allocations: 1.358 MB / 16.31 MB, free: 5.352 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.352e-05/1.369e-05, allocations: 0 / 23.31 MB, free: 3.996 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0006773/0.0007144, allocations: 364.6 kB / 23.66 MB, free: 3.828 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test5): time 0.001268/0.001996, allocations: 0.9713 MB / 24.63 MB, free: 3.004 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.0033, allocations: 0.6483 MB / 25.28 MB, free: 2.359 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.003483, allocations: 7.938 kB / 25.29 MB, free: 2.352 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.003733, allocations: 80 kB / 25.37 MB, free: 2.273 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0008102/0.004556, allocations: 246.1 kB / 25.61 MB, free: 2.035 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001456/0.004718, allocations: 35.95 kB / 25.64 MB, free: 2 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0002932/0.005025, allocations: 215.5 kB / 25.85 MB, free: 1.789 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002446/0.005283, allocations: 139 kB / 25.99 MB, free: 1.641 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.005425, allocations: 111.3 kB / 26.1 MB, free: 1.531 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.005598, allocations: 131.2 kB / 26.23 MB, free: 1.402 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 4.12e-05/0.005651, allocations: 12 kB / 26.24 MB, free: 1.391 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003308/0.005991, allocations: 183.8 kB / 26.42 MB, free: 1.211 MB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 8.669e-05/0.006092, allocations: 67.72 kB / 26.48 MB, free: 1.145 MB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 6.651e-05/0.00617, allocations: 77.52 kB / 26.56 MB, free: 1.062 MB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0005269/0.006706, allocations: 383.3 kB / 26.93 MB, free: 0.6875 MB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.006724, allocations: 4 kB / 26.94 MB, free: 0.6836 MB / 13.93 MB Notification: Performance of FrontEnd: time 1.814e-06/0.006734, allocations: 0 / 26.94 MB, free: 0.6836 MB / 13.93 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.006754, allocations: 0 / 26.94 MB, free: 0.6836 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.0007906/0.007553, allocations: 0.6056 MB / 27.54 MB, free: 24 kB / 13.93 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.007607, allocations: 12.28 kB / 27.56 MB, free: 12 kB / 13.93 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001595/0.007776, allocations: 90.69 kB / 27.64 MB, free: 4.574 MB / 18.59 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.007911, allocations: 44.39 kB / 27.69 MB, free: 4.531 MB / 18.59 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005089/0.00843, allocations: 291.7 kB / 27.97 MB, free: 4.207 MB / 18.59 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.412e-05/0.008508, allocations: 37.33 kB / 28.01 MB, free: 4.172 MB / 18.59 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.00863, allocations: 56.03 kB / 28.06 MB, free: 4.121 MB / 18.59 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.01024, allocations: 0.6331 MB / 28.7 MB, free: 3.469 MB / 18.59 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.0103, allocations: 0 / 28.7 MB, free: 3.469 MB / 18.59 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.197e-05/0.01039, allocations: 31.92 kB / 28.73 MB, free: 3.438 MB / 18.59 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000183/0.01059, allocations: 36.97 kB / 28.76 MB, free: 3.402 MB / 18.59 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001807/0.01242, allocations: 459.6 kB / 29.21 MB, free: 2.953 MB / 18.59 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003036/0.01549, allocations: 1.501 MB / 30.71 MB, free: 1.32 MB / 18.59 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007211/0.01625, allocations: 243 kB / 30.95 MB, free: 1.074 MB / 18.59 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006783/0.01695, allocations: 0.5897 MB / 31.54 MB, free: 364 kB / 18.59 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.26e-05/0.01702, allocations: 38.75 kB / 31.58 MB, free: 316 kB / 18.59 MB Notification: Performance of pre-optimization done (n=23): time 3.156e-06/0.01704, allocations: 0 / 31.58 MB, free: 316 kB / 18.59 MB Notification: Performance of matching and sorting (n=23): time 0.0122/0.02925, allocations: 0.6295 MB / 32.21 MB, free: 7.801 MB / 18.59 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.341e-05/0.02936, allocations: 146.8 kB / 32.35 MB, free: 7.645 MB / 18.59 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.02966, allocations: 216.6 kB / 32.56 MB, free: 7.535 MB / 18.59 MB Notification: Performance of collectPreVariables (initialization): time 3.871e-05/0.02971, allocations: 33.28 kB / 32.6 MB, free: 7.504 MB / 18.59 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.02986, allocations: 213.4 kB / 32.8 MB, free: 7.367 MB / 18.59 MB Notification: Performance of collectInitialBindings (initialization): time 8.79e-05/0.02996, allocations: 82.03 kB / 32.88 MB, free: 7.324 MB / 18.59 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.901e-05/0.03, allocations: 10.78 kB / 32.89 MB, free: 7.324 MB / 18.59 MB Notification: Performance of setup shared object (initialization): time 7.144e-05/0.03008, allocations: 328.7 kB / 33.22 MB, free: 7.012 MB / 18.59 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004626/0.03055, allocations: 168.6 kB / 33.38 MB, free: 7.004 MB / 18.59 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004722/0.03104, allocations: 239.2 kB / 33.61 MB, free: 6.922 MB / 18.59 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004277/0.03148, allocations: 201.9 kB / 33.81 MB, free: 6.863 MB / 18.59 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.0315, allocations: 3.812 kB / 33.81 MB, free: 6.863 MB / 18.59 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001204/0.03271, allocations: 0.5342 MB / 34.35 MB, free: 6.652 MB / 18.59 MB Notification: Performance of prepare postOptimizeDAE: time 5.701e-05/0.03279, allocations: 43.34 kB / 34.39 MB, free: 6.613 MB / 18.59 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.03281, allocations: 3.719 kB / 34.39 MB, free: 6.613 MB / 18.59 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.03284, allocations: 10.2 kB / 34.4 MB, free: 6.613 MB / 18.59 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002894/0.03313, allocations: 56.69 kB / 34.46 MB, free: 6.598 MB / 18.59 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.03316, allocations: 4.781 kB / 34.46 MB, free: 6.598 MB / 18.59 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002433/0.03341, allocations: 51.59 kB / 34.51 MB, free: 6.57 MB / 18.59 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.977e-05/0.03347, allocations: 19.84 kB / 34.53 MB, free: 6.559 MB / 18.59 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P2.fireIn[1],P2.feeding,P1.outTransition[1].arcType,P1.fireOut[1],P2.fireIn[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.arcType[1],T1.activation.emptied[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 (36): * Single equations (assignments): 33 * Array equations: 2 * 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.0002898/0.03377, allocations: 249.3 kB / 34.78 MB, free: 6.305 MB / 18.59 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.86e-05/0.03384, allocations: 24.52 kB / 34.8 MB, free: 6.281 MB / 18.59 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.03495, allocations: 494.4 kB / 35.28 MB, free: 5.797 MB / 18.59 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.797e-05/0.03499, allocations: 4 kB / 35.29 MB, free: 5.793 MB / 18.59 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.03501, allocations: 0 / 35.29 MB, free: 5.793 MB / 18.59 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.03502, allocations: 0 / 35.29 MB, free: 5.793 MB / 18.59 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.0366, allocations: 0.939 MB / 36.23 MB, free: 4.801 MB / 18.59 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.03662, allocations: 0 / 36.23 MB, free: 4.801 MB / 18.59 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002617/0.03689, allocations: 31.98 kB / 36.26 MB, free: 4.77 MB / 18.59 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.03691, allocations: 7.938 kB / 36.27 MB, free: 4.762 MB / 18.59 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/0.03695, allocations: 8.625 kB / 36.27 MB, free: 4.754 MB / 18.59 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.03697, allocations: 7.719 kB / 36.28 MB, free: 4.75 MB / 18.59 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.03698, allocations: 0 / 36.28 MB, free: 4.75 MB / 18.59 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.03841, allocations: 0.7391 MB / 37.02 MB, free: 3.992 MB / 18.59 MB Notification: Performance of postOpt removeConstants (simulation): time 4.744e-05/0.03848, allocations: 99.8 kB / 37.12 MB, free: 3.879 MB / 18.59 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.455e-05/0.03856, allocations: 18.14 kB / 37.14 MB, free: 3.863 MB / 18.59 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.03882, allocations: 27.97 kB / 37.16 MB, free: 3.836 MB / 18.59 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.03902, allocations: 63.92 kB / 37.23 MB, free: 3.773 MB / 18.59 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.885e-05/0.03907, allocations: 8 kB / 37.23 MB, free: 3.766 MB / 18.59 MB Notification: Performance of sorting global known variables: time 0.0001303/0.03921, allocations: 149.2 kB / 37.38 MB, free: 3.621 MB / 18.59 MB Notification: Performance of sort global known variables: time 3.91e-07/0.03923, allocations: 4.062 kB / 37.38 MB, free: 3.617 MB / 18.59 MB Notification: Performance of remove unused functions: time 0.0006188/0.03985, allocations: 142.1 kB / 37.52 MB, free: 3.484 MB / 18.59 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: 7 (P1.fireOut[1],P1.emptying,P2.fireIn[1],P2.feeding,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1]) * Number of discrete states: 5 (T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,P1.fireOut[1],P2.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 20 * Array equations: 2 * 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.001814/0.04168, allocations: 1.352 MB / 38.87 MB, free: 2.117 MB / 18.59 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.04276, allocations: 492.8 kB / 39.36 MB, free: 1.625 MB / 18.59 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.04277, allocations: 0 / 39.36 MB, free: 1.625 MB / 18.59 MB Notification: Performance of simCode: created simulation system equations: time 0.0004975/0.04328, allocations: 275.2 kB / 39.62 MB, free: 1.344 MB / 18.59 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.04362, allocations: 29.23 kB / 39.65 MB, free: 1.316 MB / 18.59 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01672/0.06036, allocations: 3.05 MB / 42.7 MB, free: 5.406 MB / 18.59 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.06089, allocations: 0.8565 MB / 43.56 MB, free: 11.1 MB / 24.98 MB Notification: Performance of simCode: alias equations: time 0.0003457/0.06125, allocations: 102.4 kB / 43.66 MB, free: 11.1 MB / 24.98 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002341/0.0615, allocations: 128.5 kB / 43.79 MB, free: 11.09 MB / 24.98 MB Notification: Performance of SimCode: time 8.72e-07/0.06151, allocations: 3 kB / 43.79 MB, free: 11.09 MB / 24.98 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03456/0.09608, allocations: 6.747 MB / 50.54 MB, free: 4.918 MB / 24.98 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004848/0.09665, allocations: 148.1 kB / 50.68 MB, free: 4.672 MB / 24.98 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.463/2.56, allocations: 0 / 50.68 MB, free: 4.672 MB / 24.98 MB (rm -f ConPNlib_ConPNlib.Examples.Test5.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test5.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test5.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test5_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test5.fmu > ConPNlib_ConPNlib.Examples.Test5.pipe 2>&1)