Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.SmoothHeaviside.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 192.6 kB / 16.53 MB, free: 6.391 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7779/0.7779, allocations: 132.2 MB / 422.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 63.98 kB / 0.5019 GB, free: 3.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.343, allocations: 80.2 MB / 0.5802 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothHeaviside): time 0.002164/0.3452, allocations: 1.437 MB / 0.5816 GB, free: 3.562 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006032/0.3458, allocations: 474.9 kB / 0.582 GB, free: 3.234 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.967e-05/0.3458, allocations: 1 kB / 0.582 GB, free: 3.234 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.034e-05/0.3459, allocations: 4.547 kB / 0.582 GB, free: 3.23 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.063e-05/0.3459, allocations: 4.812 kB / 0.5821 GB, free: 3.227 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001687/0.3461, allocations: 23.69 kB / 0.5821 GB, free: 3.215 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.214e-05/0.3462, allocations: 28.83 kB / 0.5821 GB, free: 3.199 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.839e-05/0.3463, allocations: 8.172 kB / 0.5821 GB, free: 3.195 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.999e-05/0.3463, allocations: 13.75 kB / 0.5821 GB, free: 3.188 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.379e-05/0.3463, allocations: 15.12 kB / 0.5821 GB, free: 3.18 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.052e-05/0.3464, allocations: 2.062 kB / 0.5821 GB, free: 3.18 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.258e-05/0.3464, allocations: 21.56 kB / 0.5822 GB, free: 3.172 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.042e-05/0.3464, allocations: 3.109 kB / 0.5822 GB, free: 3.172 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.047e-05/0.3465, allocations: 10.58 kB / 0.5822 GB, free: 3.164 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 9.152e-05/0.3466, allocations: 30.91 kB / 0.5822 GB, free: 3.152 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3466, allocations: 0.7969 kB / 0.5822 GB, free: 3.152 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3466, allocations: 0 / 0.5822 GB, free: 3.152 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.3466, allocations: 4 kB / 0.5822 GB, free: 3.148 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003123/0.3469, allocations: 346.5 kB / 0.5825 GB, free: 2.789 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.3469, allocations: 9.375 kB / 0.5825 GB, free: 2.789 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.016e-05/0.347, allocations: 32.33 kB / 0.5826 GB, free: 2.75 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.045e-05/0.347, allocations: 5.844 kB / 0.5826 GB, free: 2.746 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.41e-05/0.3471, allocations: 171.5 kB / 0.5827 GB, free: 2.543 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.171e-06/0.3471, allocations: 1.375 kB / 0.5827 GB, free: 2.543 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.3471, allocations: 2.5 kB / 0.5828 GB, free: 2.543 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.3472, allocations: 60.03 kB / 0.5828 GB, free: 2.496 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.3473, allocations: 0 / 0.5828 GB, free: 2.496 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.3473, allocations: 5.906 kB / 0.5828 GB, free: 2.492 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.3473, allocations: 0 / 0.5828 GB, free: 2.492 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.3474, allocations: 33.25 kB / 0.5828 GB, free: 2.488 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002155/0.3477, allocations: 251.1 kB / 0.5831 GB, free: 2.211 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.3478, allocations: 46.16 kB / 0.5831 GB, free: 2.176 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.091e-05/0.3479, allocations: 23.64 kB / 0.5832 GB, free: 2.164 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.536e-05/0.348, allocations: 81.12 kB / 0.5832 GB, free: 2.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.212e-05/0.348, allocations: 41 kB / 0.5833 GB, free: 2.023 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.348, allocations: 0 / 0.5833 GB, free: 2.023 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003106/0.3483, allocations: 87.83 kB / 0.5834 GB, free: 1.977 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.559e-05/0.3483, allocations: 52.72 kB / 0.5834 GB, free: 1.914 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.639e-05/0.3484, allocations: 103.9 kB / 0.5835 GB, free: 1.812 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.311e-06/0.3484, allocations: 25.7 kB / 0.5835 GB, free: 1.781 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.063e-05/0.3484, allocations: 85.77 kB / 0.5836 GB, free: 1.695 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.3484, allocations: 1.484 kB / 0.5836 GB, free: 1.695 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.554e-05/0.3485, allocations: 24.55 kB / 0.5836 GB, free: 1.668 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.361e-05/0.3485, allocations: 321.7 kB / 0.5839 GB, free: 1.348 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.671e-05/0.3486, allocations: 17.95 kB / 0.584 GB, free: 1.344 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.926e-05/0.3487, allocations: 14.78 kB / 0.584 GB, free: 1.344 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.3488, allocations: 37.11 kB / 0.584 GB, free: 1.332 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.3488, allocations: 4.062 kB / 0.584 GB, free: 1.328 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001765/0.349, allocations: 75.25 kB / 0.5841 GB, free: 1.281 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.349, allocations: 5.672 kB / 0.5841 GB, free: 1.281 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.349, allocations: 0.8438 kB / 0.5841 GB, free: 1.281 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.349, allocations: 0 / 0.5841 GB, free: 1.281 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.757e-05/0.3491, allocations: 10.41 kB / 0.5841 GB, free: 1.281 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.3491, allocations: 0 / 0.5841 GB, free: 1.281 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.402e-05/0.3492, allocations: 9.75 kB / 0.5841 GB, free: 1.277 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-06/0.3492, allocations: 0.75 kB / 0.5841 GB, free: 1.277 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 4.214e-05/0.3492, allocations: 113.8 kB / 0.5842 GB, free: 1.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.272e-05/0.3493, allocations: 1.938 kB / 0.5842 GB, free: 1.16 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002094/0.3495, allocations: 72.47 kB / 0.5843 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3495, allocations: 0.75 kB / 0.5843 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.3495, allocations: 0 / 0.5843 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.3495, allocations: 9.25 kB / 0.5843 GB, free: 1.109 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.3496, allocations: 160.5 kB / 0.5844 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3496, allocations: 0 / 0.5844 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.709e-05/0.3497, allocations: 8.562 kB / 0.5845 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3497, allocations: 1.984 kB / 0.5845 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-06/0.3497, allocations: 0 / 0.5845 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3497, allocations: 1.375 kB / 0.5845 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3497, allocations: 0.5156 kB / 0.5845 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.3499, allocations: 167 kB / 0.5846 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.919e-05/0.35, allocations: 82.53 kB / 0.5847 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.35, allocations: 1.125 kB / 0.5847 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.146e-05/0.3501, allocations: 10.12 kB / 0.5847 GB, free: 0.668 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.781e-05/0.3501, allocations: 2.156 kB / 0.5847 GB, free: 0.668 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.3501, allocations: 1.703 kB / 0.5847 GB, free: 0.668 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.363e-05/0.3501, allocations: 84.62 kB / 0.5848 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3501, allocations: 4.031 kB / 0.5848 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002141/0.3504, allocations: 6.156 kB / 0.5848 GB, free: 0.5859 MB / 430.1 MB 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 (2): * Single equations (assignments): 2 * 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.0004544/0.3508, allocations: 0.7011 MB / 0.5855 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000217/0.3511, allocations: 38.81 kB / 0.5855 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3511, allocations: 1.312 kB / 0.5855 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.259e-05/0.3512, allocations: 23.81 kB / 0.5856 GB, free: 15.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.3515, allocations: 12.7 kB / 0.5856 GB, free: 15.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004176/0.3519, allocations: 140.8 kB / 0.5857 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.3522, allocations: 0.6801 MB / 0.5864 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.445e-05/0.3522, allocations: 2.672 kB / 0.5864 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.115e-05/0.3522, allocations: 8.406 kB / 0.5864 GB, free: 15.03 MB / 446.1 MB Notification: Performance of SimCode: time 4e-07/0.3522, allocations: 0.8438 kB / 0.5864 GB, free: 15.03 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1253/0.4775, allocations: 1.383 MB / 0.5877 GB, free: 14.67 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.677/8.154, allocations: 7.672 kB / 0.5877 GB, free: 14.67 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_SmoothHeaviside.fmu > IDEAS_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)