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.00735/0.00735, allocations: 1.363 MB / 16.61 MB, free: 4.734 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.6e-05/1.598e-05, allocations: 5.547 kB / 23.76 MB, free: 3.453 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0005998/0.000633, allocations: 363.9 kB / 24.11 MB, free: 3.109 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test5): time 0.0009077/0.001553, allocations: 1.03 MB / 25.14 MB, free: 2.082 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.002645, allocations: 0.7068 MB / 25.85 MB, free: 1.375 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.002845, allocations: 9.188 kB / 25.86 MB, free: 1.367 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0002079/0.003061, allocations: 67.58 kB / 25.92 MB, free: 1.301 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0006173/0.003686, allocations: 230 kB / 26.15 MB, free: 1.078 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 9.131e-05/0.003788, allocations: 35.91 kB / 26.18 MB, free: 1.043 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0003055/0.004102, allocations: 331 kB / 26.51 MB, free: 0.7188 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/0.004293, allocations: 152.6 kB / 26.66 MB, free: 0.5664 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.004424, allocations: 127.2 kB / 26.78 MB, free: 452 kB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.00458, allocations: 139.1 kB / 26.92 MB, free: 312 kB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 3.615e-05/0.004624, allocations: 12 kB / 26.93 MB, free: 300 kB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002813/0.004911, allocations: 219.6 kB / 27.14 MB, free: 80 kB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 7.64e-05/0.004996, allocations: 79.62 kB / 27.22 MB, free: 0 / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.005153, allocations: 131.1 kB / 27.35 MB, free: 4.512 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.000562/0.005724, allocations: 0.5023 MB / 27.85 MB, free: 4.012 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.005735, allocations: 0 / 27.85 MB, free: 4.012 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.032e-06/0.005741, allocations: 0 / 27.85 MB, free: 4.012 MB / 18.57 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.005754, allocations: 0 / 27.85 MB, free: 4.012 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.0008356/0.006594, allocations: 0.5978 MB / 28.45 MB, free: 3.355 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.006647, allocations: 12.97 kB / 28.46 MB, free: 3.344 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001027/0.006756, allocations: 86.69 kB / 28.55 MB, free: 3.25 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.034e-05/0.006852, allocations: 44.47 kB / 28.59 MB, free: 3.207 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003404/0.007199, allocations: 303.7 kB / 28.89 MB, free: 2.871 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.007245, allocations: 41.36 kB / 28.93 MB, free: 2.832 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.157e-05/0.007312, allocations: 44.38 kB / 28.97 MB, free: 2.789 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000984/0.008302, allocations: 0.6407 MB / 29.61 MB, free: 2.129 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.008332, allocations: 7.125 kB / 29.62 MB, free: 2.125 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/0.008381, allocations: 27.98 kB / 29.64 MB, free: 2.098 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.06e-05/0.008456, allocations: 32.97 kB / 29.68 MB, free: 2.066 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000721/0.009184, allocations: 463.7 kB / 30.13 MB, free: 1.613 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007633/0.01683, allocations: 1.499 MB / 31.63 MB, free: 7.164 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005073/0.01737, allocations: 240.5 kB / 31.86 MB, free: 7.141 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002786/0.01767, allocations: 192.9 kB / 32.05 MB, free: 7.133 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003524/0.01804, allocations: 0.5914 MB / 32.64 MB, free: 6.477 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.01807, allocations: 37.59 kB / 32.68 MB, free: 6.438 MB / 18.57 MB Notification: Performance of pre-optimization done (n=23): time 3.797e-06/0.01808, allocations: 0 / 32.68 MB, free: 6.438 MB / 18.57 MB Notification: Performance of matching and sorting (n=23): time 0.0009098/0.019, allocations: 0.5527 MB / 33.23 MB, free: 6.375 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.01907, allocations: 141.9 kB / 33.37 MB, free: 6.219 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.01928, allocations: 221.3 kB / 33.59 MB, free: 6.109 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.01931, allocations: 32.73 kB / 33.62 MB, free: 6.078 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.01945, allocations: 218.1 kB / 33.83 MB, free: 5.945 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 6.049e-05/0.01951, allocations: 77.78 kB / 33.91 MB, free: 5.895 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.676e-05/0.01959, allocations: 51.89 kB / 33.96 MB, free: 5.863 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 7.34e-05/0.01967, allocations: 330.3 kB / 34.28 MB, free: 5.543 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002428/0.01991, allocations: 168.2 kB / 34.45 MB, free: 5.488 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002889/0.02021, allocations: 240 kB / 34.68 MB, free: 5.352 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004397/0.02066, allocations: 417.9 kB / 35.09 MB, free: 5.121 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.02068, allocations: 0.9062 kB / 35.09 MB, free: 5.121 MB / 18.57 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000672/0.02136, allocations: 0.5491 MB / 35.64 MB, free: 4.73 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/0.0214, allocations: 41.69 kB / 35.68 MB, free: 4.684 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.02142, allocations: 4.656 kB / 35.68 MB, free: 4.68 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.02144, allocations: 4 kB / 35.69 MB, free: 4.676 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.02161, allocations: 47.91 kB / 35.73 MB, free: 4.629 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.02162, allocations: 11.5 kB / 35.75 MB, free: 4.621 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.02177, allocations: 56.98 kB / 35.8 MB, free: 4.566 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.263e-05/0.02181, allocations: 12 kB / 35.81 MB, free: 4.555 MB / 18.57 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 (P1.emptying,$PRE.P1.fireOut[1],P2.feeding,$PRE.P2.fireIn[1],P1.outTransition[1].arcType,T1.activation.fed[1],T1.activation.emptied[1],T1.activation.arcType[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,P2.fireIn[1],P1.fireOut[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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002174/0.02204, allocations: 260 kB / 36.07 MB, free: 4.293 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.984e-05/0.0221, allocations: 19.81 kB / 36.09 MB, free: 4.273 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006763/0.02278, allocations: 490 kB / 36.57 MB, free: 3.793 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/0.02281, allocations: 12 kB / 36.58 MB, free: 3.781 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.02282, allocations: 0 / 36.58 MB, free: 3.781 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.02283, allocations: 7.984 kB / 36.58 MB, free: 3.773 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.024, allocations: 0.9231 MB / 37.51 MB, free: 2.797 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.02402, allocations: 5.094 kB / 37.51 MB, free: 2.797 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.02426, allocations: 43.91 kB / 37.56 MB, free: 2.754 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.02428, allocations: 4 kB / 37.56 MB, free: 2.75 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.456e-05/0.02432, allocations: 12 kB / 37.57 MB, free: 2.738 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.02433, allocations: 0 / 37.57 MB, free: 2.738 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.02434, allocations: 0 / 37.57 MB, free: 2.738 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.02569, allocations: 0.7371 MB / 38.31 MB, free: 1.98 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 5.009e-05/0.02576, allocations: 96.86 kB / 38.4 MB, free: 1.867 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.557e-05/0.02583, allocations: 11.98 kB / 38.41 MB, free: 1.855 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.02607, allocations: 23.98 kB / 38.44 MB, free: 1.832 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.02628, allocations: 65.48 kB / 38.5 MB, free: 1.77 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.454e-05/0.02634, allocations: 17.08 kB / 38.52 MB, free: 1.754 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0001461/0.0265, allocations: 141.2 kB / 38.66 MB, free: 1.617 MB / 18.57 MB Notification: Performance of sort global known variables: time 5.01e-07/0.02651, allocations: 0 / 38.66 MB, free: 1.617 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0008131/0.02733, allocations: 159 kB / 38.81 MB, free: 1.469 MB / 18.57 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 (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.002035/0.02938, allocations: 1.345 MB / 40.16 MB, free: 112 kB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.01247/0.04187, allocations: 490.9 kB / 40.64 MB, free: 6.371 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.04193, allocations: 0 / 40.64 MB, free: 6.371 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0005209/0.04247, allocations: 277.9 kB / 40.91 MB, free: 6.309 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005909/0.04307, allocations: 39.69 kB / 40.95 MB, free: 6.305 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005646/0.04874, allocations: 3.515 MB / 44.46 MB, free: 4.039 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004956/0.04929, allocations: 0.8456 MB / 45.31 MB, free: 9.559 MB / 24.96 MB Notification: Performance of simCode: alias equations: time 0.0003412/0.04965, allocations: 119.3 kB / 45.42 MB, free: 9.457 MB / 24.96 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002488/0.04991, allocations: 125.9 kB / 45.55 MB, free: 9.336 MB / 24.96 MB Notification: Performance of SimCode: time 9.31e-07/0.04993, allocations: 0 / 45.55 MB, free: 9.336 MB / 24.96 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01945/0.06939, allocations: 6.627 MB / 52.17 MB, free: 2.754 MB / 24.96 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002041/0.06964, allocations: 156.6 kB / 52.33 MB, free: 2.5 MB / 24.96 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.948/2.018, allocations: 0 / 52.33 MB, free: 2.5 MB / 24.96 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)