Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test3.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.Test3,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test3,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.01645/0.01645, allocations: 1.358 MB / 16.31 MB, free: 5.352 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.508e-05/1.499e-05, allocations: 0 / 23.31 MB, free: 3.992 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0007256/0.0007728, allocations: 356.7 kB / 23.66 MB, free: 3.828 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test3): time 0.001044/0.001836, allocations: 0.7047 MB / 24.37 MB, free: 3.27 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.00304, allocations: 0.5485 MB / 24.91 MB, free: 2.727 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.0032, allocations: 5.344 kB / 24.92 MB, free: 2.723 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0001907/0.003403, allocations: 47.66 kB / 24.97 MB, free: 2.676 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0007148/0.00413, allocations: 186.8 kB / 25.15 MB, free: 2.496 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001344/0.004286, allocations: 35.89 kB / 25.18 MB, free: 2.461 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.004544, allocations: 135.7 kB / 25.32 MB, free: 2.328 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001894/0.004747, allocations: 80.16 kB / 25.39 MB, free: 2.246 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.004903, allocations: 79.56 kB / 25.47 MB, free: 2.168 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.005088, allocations: 67.56 kB / 25.54 MB, free: 2.102 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 4.621e-05/0.005157, allocations: 4 kB / 25.54 MB, free: 2.098 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004287/0.005604, allocations: 115.8 kB / 25.65 MB, free: 1.984 MB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 8.25e-05/0.005712, allocations: 39.83 kB / 25.69 MB, free: 1.945 MB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 7.234e-05/0.005809, allocations: 53.58 kB / 25.75 MB, free: 1.887 MB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0004977/0.006327, allocations: 211.6 kB / 25.95 MB, free: 1.68 MB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.006354, allocations: 4 kB / 25.96 MB, free: 1.676 MB / 13.93 MB Notification: Performance of FrontEnd: time 2.114e-06/0.006369, allocations: 0 / 25.96 MB, free: 1.676 MB / 13.93 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.006392, allocations: 0 / 25.96 MB, free: 1.676 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0009638/0.007372, allocations: 488.3 kB / 26.43 MB, free: 1.148 MB / 13.93 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.007452, allocations: 8.297 kB / 26.44 MB, free: 1.141 MB / 13.93 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.007591, allocations: 66.69 kB / 26.51 MB, free: 1.066 MB / 13.93 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.007715, allocations: 20.58 kB / 26.53 MB, free: 1.047 MB / 13.93 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004488/0.008184, allocations: 239.9 kB / 26.76 MB, free: 0.7734 MB / 13.93 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.088e-05/0.008258, allocations: 20.89 kB / 26.78 MB, free: 0.7539 MB / 13.93 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.704e-05/0.008364, allocations: 24.09 kB / 26.8 MB, free: 0.7344 MB / 13.93 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.009766, allocations: 348.8 kB / 27.15 MB, free: 388 kB / 13.93 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.009844, allocations: 0 / 27.15 MB, free: 388 kB / 13.93 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.15e-05/0.009934, allocations: 15.95 kB / 27.16 MB, free: 372 kB / 13.93 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001044/0.01006, allocations: 16.42 kB / 27.18 MB, free: 356 kB / 13.93 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009464/0.01102, allocations: 229.6 kB / 27.4 MB, free: 128 kB / 13.93 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003009/0.01406, allocations: 0.9144 MB / 28.32 MB, free: 3.766 MB / 18.58 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006327/0.01475, allocations: 138.5 kB / 28.45 MB, free: 3.621 MB / 18.58 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007392/0.01551, allocations: 425.5 kB / 28.87 MB, free: 3.113 MB / 18.58 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.319e-05/0.01561, allocations: 38.56 kB / 28.9 MB, free: 3.066 MB / 18.58 MB Notification: Performance of pre-optimization done (n=13): time 5.781e-06/0.01563, allocations: 0 / 28.9 MB, free: 3.066 MB / 18.58 MB Notification: Performance of matching and sorting (n=13): time 0.001641/0.01729, allocations: 384.2 kB / 29.28 MB, free: 2.66 MB / 18.58 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.01744, allocations: 114.8 kB / 29.39 MB, free: 2.523 MB / 18.58 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003119/0.01776, allocations: 154.2 kB / 29.54 MB, free: 2.359 MB / 18.58 MB Notification: Performance of collectPreVariables (initialization): time 5.991e-05/0.01785, allocations: 33.7 kB / 29.57 MB, free: 2.32 MB / 18.58 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.01806, allocations: 148.1 kB / 29.72 MB, free: 2.172 MB / 18.58 MB Notification: Performance of collectInitialBindings (initialization): time 9.989e-05/0.01818, allocations: 47.3 kB / 29.77 MB, free: 2.125 MB / 18.58 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.336e-05/0.01823, allocations: 4 kB / 29.77 MB, free: 2.121 MB / 18.58 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.01843, allocations: 322.8 kB / 30.08 MB, free: 1.797 MB / 18.58 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003042/0.01875, allocations: 75.94 kB / 30.16 MB, free: 1.723 MB / 18.58 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000317/0.01909, allocations: 125.1 kB / 30.28 MB, free: 1.582 MB / 18.58 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.01939, allocations: 110.3 kB / 30.39 MB, free: 1.469 MB / 18.58 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.627e-06/0.01942, allocations: 7.953 kB / 30.4 MB, free: 1.461 MB / 18.58 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0007878/0.02021, allocations: 291.1 kB / 30.68 MB, free: 1.164 MB / 18.58 MB Notification: Performance of prepare postOptimizeDAE: time 6.005e-05/0.02029, allocations: 41.69 kB / 30.72 MB, free: 1.117 MB / 18.58 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.02031, allocations: 0 / 30.72 MB, free: 1.117 MB / 18.58 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.02033, allocations: 4 kB / 30.73 MB, free: 1.113 MB / 18.58 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002189/0.02056, allocations: 28.98 kB / 30.75 MB, free: 1.086 MB / 18.58 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.066e-06/0.02058, allocations: 0 / 30.75 MB, free: 1.086 MB / 18.58 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.02075, allocations: 27.83 kB / 30.78 MB, free: 1.059 MB / 18.58 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-05/0.02081, allocations: 12.09 kB / 30.79 MB, free: 1.047 MB / 18.58 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.P1.fireIn[1],P1.feeding,T1.activation.active,T1.activation.weaklyOutputActiveVec[1],P1.fireIn[1],T1.activation.emptied[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 (19): * Single equations (assignments): 17 * 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.0002961/0.02111, allocations: 200 kB / 30.99 MB, free: 0.8359 MB / 18.58 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.551e-05/0.02118, allocations: 11.86 kB / 31 MB, free: 0.8242 MB / 18.58 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000909/0.0221, allocations: 323.9 kB / 31.32 MB, free: 496 kB / 18.58 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/0.02214, allocations: 4 kB / 31.32 MB, free: 492 kB / 18.58 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.02215, allocations: 0 / 31.32 MB, free: 492 kB / 18.58 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.02217, allocations: 0 / 31.32 MB, free: 492 kB / 18.58 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01197/0.03415, allocations: 0.6254 MB / 31.95 MB, free: 7.672 MB / 18.58 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.0342, allocations: 0 / 31.95 MB, free: 7.672 MB / 18.58 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001932/0.03441, allocations: 18.33 kB / 31.96 MB, free: 7.672 MB / 18.58 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.323e-06/0.03443, allocations: 0.75 kB / 31.96 MB, free: 7.672 MB / 18.58 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/0.03447, allocations: 7.141 kB / 31.97 MB, free: 7.672 MB / 18.58 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.03448, allocations: 2.047 kB / 31.97 MB, free: 7.672 MB / 18.58 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.03449, allocations: 0 / 31.97 MB, free: 7.672 MB / 18.58 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.03555, allocations: 458.8 kB / 32.42 MB, free: 7.512 MB / 18.58 MB Notification: Performance of postOpt removeConstants (simulation): time 5.469e-05/0.03564, allocations: 92.83 kB / 32.51 MB, free: 7.418 MB / 18.58 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.116e-05/0.0357, allocations: 5.5 kB / 32.52 MB, free: 7.418 MB / 18.58 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.03589, allocations: 14.3 kB / 32.53 MB, free: 7.418 MB / 18.58 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.03605, allocations: 34.94 kB / 32.57 MB, free: 7.418 MB / 18.58 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.332e-05/0.0361, allocations: 6.625 kB / 32.57 MB, free: 7.418 MB / 18.58 MB Notification: Performance of sorting global known variables: time 0.0001039/0.03621, allocations: 113.6 kB / 32.68 MB, free: 7.344 MB / 18.58 MB Notification: Performance of sort global known variables: time 1.453e-06/0.03623, allocations: 1.094 kB / 32.68 MB, free: 7.344 MB / 18.58 MB Notification: Performance of remove unused functions: time 0.0005226/0.03676, allocations: 89.62 kB / 32.77 MB, free: 7.34 MB / 18.58 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.weaklyOutputActiveVec[1],P1.fireIn[1],P1.feeding) * Number of discrete states: 3 (T1.activation.weaklyOutputActiveVec[1],T1.activation.active,P1.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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.001308/0.03808, allocations: 1.033 MB / 33.8 MB, free: 6.652 MB / 18.58 MB Notification: Performance of simCode: created initialization part: time 0.0006069/0.03872, allocations: 274.6 kB / 34.07 MB, free: 6.527 MB / 18.58 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.03874, allocations: 0 / 34.07 MB, free: 6.527 MB / 18.58 MB Notification: Performance of simCode: created simulation system equations: time 0.0003156/0.03907, allocations: 161.2 kB / 34.23 MB, free: 6.379 MB / 18.58 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.03938, allocations: 13.42 kB / 34.24 MB, free: 6.367 MB / 18.58 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002495/0.04189, allocations: 1.762 MB / 36 MB, free: 4.59 MB / 18.58 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.04218, allocations: 0.7671 MB / 36.77 MB, free: 3.801 MB / 18.58 MB Notification: Performance of simCode: alias equations: time 0.0002595/0.04245, allocations: 77.34 kB / 36.85 MB, free: 3.734 MB / 18.58 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.04262, allocations: 83.3 kB / 36.93 MB, free: 3.66 MB / 18.58 MB Notification: Performance of SimCode: time 1.944e-06/0.04264, allocations: 0 / 36.93 MB, free: 3.66 MB / 18.58 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03931/0.08196, allocations: 4.051 MB / 40.98 MB, free: 5.691 MB / 18.58 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001933/0.08222, allocations: 156.3 kB / 41.13 MB, free: 5.445 MB / 18.58 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.41/2.492, allocations: 0 / 41.13 MB, free: 5.445 MB / 18.58 MB (rm -f ConPNlib_ConPNlib.Examples.Test3.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test3.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test3.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ConPNlib_ConPNlib_Examples_Test3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ConPNlib_ConPNlib_Examples_Test3.fmu > ConPNlib_ConPNlib.Examples.Test3.pipe 2>&1)