Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 106.7 kB / 16.41 MB, free: 6.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 187 kB / 17.34 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002029/0.002029, allocations: 290.5 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.88/0.88, allocations: 169.3 MB / 0.499 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 95.84 kB / 0.6821 GB, free: 6.922 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4013/0.4031, allocations: 86.98 MB / 0.7671 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.003164/0.4063, allocations: 1.77 MB / 0.7688 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001202/0.4076, allocations: 0.6494 MB / 0.7694 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.003e-05/0.4077, allocations: 4 kB / 0.7694 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.796e-05/0.4078, allocations: 15.8 kB / 0.7694 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 7.496e-05/0.4078, allocations: 19.73 kB / 0.7695 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006007/0.4084, allocations: 172.8 kB / 0.7696 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002107/0.4087, allocations: 123.7 kB / 0.7697 GB, free: 1.09 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.4088, allocations: 52.5 kB / 0.7698 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.409, allocations: 59.83 kB / 0.7698 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.941e-05/0.4091, allocations: 51.7 kB / 0.7699 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.265e-05/0.4091, allocations: 8 kB / 0.7699 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.4092, allocations: 47.97 kB / 0.77 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.802e-05/0.4093, allocations: 39.89 kB / 0.77 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.036e-05/0.4093, allocations: 55.7 kB / 0.77 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002234/0.4096, allocations: 143.5 kB / 0.7702 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.4096, allocations: 0 / 0.7702 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4096, allocations: 4 kB / 0.7702 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.4096, allocations: 0 / 0.7702 GB, free: 0.6406 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005882/0.4102, allocations: 437.5 kB / 0.7706 GB, free: 172 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.4102, allocations: 8.031 kB / 0.7706 GB, free: 164 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008389/0.4111, allocations: 112.7 kB / 0.7707 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.4112, allocations: 182.4 kB / 0.7709 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.4114, allocations: 63.91 kB / 0.7709 GB, free: 15.76 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.4114, allocations: 8.375 kB / 0.771 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005151/0.4119, allocations: 184.5 kB / 0.7711 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.4119, allocations: 0 / 0.7711 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.4119, allocations: 0 / 0.7711 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.412, allocations: 4 kB / 0.7711 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005968/0.4126, allocations: 159.8 kB / 0.7713 GB, free: 15.41 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.4137, allocations: 481.9 kB / 0.7717 GB, free: 14.89 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009877/0.4147, allocations: 218.3 kB / 0.772 GB, free: 14.67 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003487/0.415, allocations: 84.84 kB / 0.772 GB, free: 14.58 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.415, allocations: 4 kB / 0.772 GB, free: 14.58 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.4151, allocations: 34.56 kB / 0.7721 GB, free: 14.54 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.4151, allocations: 0 / 0.7721 GB, free: 14.54 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.001001/0.4161, allocations: 265.5 kB / 0.7723 GB, free: 14.27 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.4161, allocations: 51.41 kB / 0.7724 GB, free: 14.21 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.4162, allocations: 137.8 kB / 0.7725 GB, free: 14.06 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.4163, allocations: 25.7 kB / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.46e-05/0.4163, allocations: 120.1 kB / 0.7726 GB, free: 13.91 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.4164, allocations: 23.64 kB / 0.7727 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-05/0.4164, allocations: 25.7 kB / 0.7727 GB, free: 13.85 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.4165, allocations: 314.8 kB / 0.773 GB, free: 13.54 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000295/0.4168, allocations: 79.84 kB / 0.7731 GB, free: 13.46 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.4172, allocations: 94.5 kB / 0.7732 GB, free: 13.36 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00058/0.4177, allocations: 158.4 kB / 0.7733 GB, free: 13.19 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4178, allocations: 3.938 kB / 0.7733 GB, free: 13.19 MB / 0.545 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006609/0.4184, allocations: 205.4 kB / 0.7735 GB, free: 12.98 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.4184, allocations: 12.06 kB / 0.7735 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.4185, allocations: 0 / 0.7735 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.4185, allocations: 11.86 kB / 0.7735 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002564/0.4187, allocations: 35.95 kB / 0.7736 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.4188, allocations: 0 / 0.7736 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/0.4189, allocations: 19.97 kB / 0.7736 GB, free: 12.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.419, allocations: 4 kB / 0.7736 GB, free: 12.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 9.385e-05/0.4191, allocations: 128.2 kB / 0.7737 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.388e-05/0.4192, allocations: 7.906 kB / 0.7737 GB, free: 12.76 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007052/0.4199, allocations: 214.5 kB / 0.7739 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.4199, allocations: 4 kB / 0.7739 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.4199, allocations: 0 / 0.7739 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.4199, allocations: 0 / 0.7739 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003175/0.4202, allocations: 234.3 kB / 0.7742 GB, free: 12.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.4202, allocations: 0 / 0.7742 GB, free: 12.26 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002216/0.4205, allocations: 35.89 kB / 0.7742 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.4205, allocations: 0 / 0.7742 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.4205, allocations: 7.938 kB / 0.7742 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4205, allocations: 4 kB / 0.7742 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4205, allocations: 4 kB / 0.7742 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000666/0.4212, allocations: 283.2 kB / 0.7745 GB, free: 11.91 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.316e-05/0.4212, allocations: 88.95 kB / 0.7746 GB, free: 11.81 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.4213, allocations: 3.938 kB / 0.7746 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002989/0.4216, allocations: 31.95 kB / 0.7746 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.548e-05/0.4216, allocations: 7.984 kB / 0.7746 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.4216, allocations: 7.984 kB / 0.7746 GB, free: 11.76 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.476e-05/0.4217, allocations: 105.8 kB / 0.7747 GB, free: 11.66 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4217, allocations: 0 / 0.7747 GB, free: 11.66 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002553/0.422, allocations: 20 kB / 0.7747 GB, free: 11.64 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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.000139/0.4221, allocations: 107.2 kB / 0.7748 GB, free: 11.52 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006533/0.4228, allocations: 155.8 kB / 0.775 GB, free: 11.37 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4228, allocations: 128 / 0.775 GB, free: 11.37 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002997/0.4231, allocations: 87.91 kB / 0.7751 GB, free: 11.29 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.4234, allocations: 12 kB / 0.7751 GB, free: 11.27 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006624/0.424, allocations: 285 kB / 0.7753 GB, free: 10.96 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.4243, allocations: 0.7041 MB / 0.776 GB, free: 10.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.429e-05/0.4244, allocations: 15.42 kB / 0.776 GB, free: 10.22 MB / 0.545 GB Notification: Performance of SimCode: time 3e-07/0.4244, allocations: 3.938 kB / 0.7761 GB, free: 10.21 MB / 0.545 GB Notification: Performance of Templates: time 0.003262/0.4277, allocations: 1.613 MB / 0.7776 GB, free: 8.609 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)