Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/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.SmoothBlocks,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_SmoothBlocks",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.001658/0.001664, allocations: 108 kB / 15.61 MB, free: 148 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.001747/0.001748, allocations: 196 kB / 16.53 MB, free: 6.656 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.387/1.387, 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.7829/0.7829, allocations: 132.2 MB / 422.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 69.53 kB / 0.5019 GB, free: 3.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3955, allocations: 80.2 MB / 0.5802 GB, free: 4.559 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothBlocks): time 0.003505/0.3991, allocations: 1.771 MB / 0.5819 GB, free: 3.316 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.4005, allocations: 0.6542 MB / 0.5826 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.787e-05/0.4006, allocations: 1.125 kB / 0.5826 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 4.967e-05/0.4007, allocations: 10.83 kB / 0.5826 GB, free: 2.852 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.614e-05/0.4008, allocations: 23.16 kB / 0.5826 GB, free: 2.832 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000553/0.4013, allocations: 170.1 kB / 0.5828 GB, free: 2.75 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001446/0.4015, allocations: 125.5 kB / 0.5829 GB, free: 2.695 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.4016, allocations: 49.97 kB / 0.5829 GB, free: 2.668 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.4018, allocations: 60.39 kB / 0.583 GB, free: 2.641 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.426e-05/0.4019, allocations: 55.88 kB / 0.583 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.074e-05/0.4019, allocations: 9.938 kB / 0.583 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001191/0.402, allocations: 49.22 kB / 0.5831 GB, free: 2.598 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.821e-05/0.4021, allocations: 31.78 kB / 0.5831 GB, free: 2.578 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.859e-05/0.4021, allocations: 56.31 kB / 0.5832 GB, free: 2.543 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.4024, allocations: 144 kB / 0.5833 GB, free: 2.484 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4024, allocations: 0.9062 kB / 0.5833 GB, free: 2.484 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4024, allocations: 0 / 0.5833 GB, free: 2.484 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.4024, allocations: 0 / 0.5833 GB, free: 2.484 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005875/0.403, allocations: 445.9 kB / 0.5837 GB, free: 2.07 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.403, allocations: 9.562 kB / 0.5838 GB, free: 2.07 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.89e-05/0.4031, allocations: 40.08 kB / 0.5838 GB, free: 2.027 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009416/0.404, allocations: 113 kB / 0.5839 GB, free: 2.016 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.4042, allocations: 177.1 kB / 0.5841 GB, free: 1.812 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.772e-05/0.4043, allocations: 71.08 kB / 0.5841 GB, free: 1.738 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.4043, allocations: 6.5 kB / 0.5841 GB, free: 1.738 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005637/0.4049, allocations: 170 kB / 0.5843 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.4049, allocations: 0.8438 kB / 0.5843 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.4049, allocations: 1.5 kB / 0.5843 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.4049, allocations: 1.406 kB / 0.5843 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006435/0.4056, allocations: 164.1 kB / 0.5845 GB, free: 1.633 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.4067, allocations: 491.3 kB / 0.5849 GB, free: 1.273 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.4078, allocations: 219.8 kB / 0.5851 GB, free: 1.211 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003079/0.4081, allocations: 84.7 kB / 0.5852 GB, free: 1.184 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.4081, allocations: 5.984 kB / 0.5852 GB, free: 1.18 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.944e-05/0.4082, allocations: 32.59 kB / 0.5853 GB, free: 1.141 MB / 430.1 MB Notification: Performance of pre-optimization done (n=6): time 1.283e-06/0.4082, allocations: 0 / 0.5853 GB, free: 1.141 MB / 430.1 MB Notification: Performance of matching and sorting (n=6): time 0.001072/0.4092, allocations: 262 kB / 0.5855 GB, free: 1.055 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.701e-05/0.4093, allocations: 52.94 kB / 0.5856 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.4094, allocations: 137 kB / 0.5857 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.4094, allocations: 27.14 kB / 0.5857 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.589e-05/0.4095, allocations: 109.4 kB / 0.5858 GB, free: 0.75 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.414e-05/0.4095, allocations: 20.08 kB / 0.5858 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.762e-05/0.4096, allocations: 28.67 kB / 0.5859 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.273e-05/0.4096, allocations: 323.2 kB / 0.5862 GB, free: 400 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003232/0.4099, allocations: 74.17 kB / 0.5862 GB, free: 384 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.4103, allocations: 97.62 kB / 0.5863 GB, free: 340 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006094/0.4109, allocations: 155.6 kB / 0.5865 GB, free: 284 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4109, allocations: 0.5625 kB / 0.5865 GB, free: 284 kB / 430.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006974/0.4116, allocations: 206.8 kB / 0.5867 GB, free: 204 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.4116, allocations: 4.656 kB / 0.5867 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.4116, allocations: 10.05 kB / 0.5867 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.4117, allocations: 4.656 kB / 0.5867 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002825/0.4119, allocations: 34.67 kB / 0.5867 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.412, allocations: 5.984 kB / 0.5867 GB, free: 188 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002067/0.4122, allocations: 26.03 kB / 0.5868 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.4122, allocations: 7.688 kB / 0.5868 GB, free: 180 kB / 430.1 MB 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 7.473e-05/0.4123, allocations: 116.7 kB / 0.5869 GB, free: 60 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.457e-05/0.4123, allocations: 12.69 kB / 0.5869 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007988/0.4131, allocations: 211.9 kB / 0.5871 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.4131, allocations: 384 / 0.5871 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.4132, allocations: 4.656 kB / 0.5871 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.4132, allocations: 0.6562 kB / 0.5871 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002677/0.4134, allocations: 237.7 kB / 0.5873 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4134, allocations: 0 / 0.5873 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.4137, allocations: 35.8 kB / 0.5874 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.4137, allocations: 1.156 kB / 0.5874 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.4137, allocations: 6.625 kB / 0.5874 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.4137, allocations: 0.7031 kB / 0.5874 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4137, allocations: 0 / 0.5874 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007281/0.4145, allocations: 286.4 kB / 0.5876 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.49e-05/0.4145, allocations: 84.77 kB / 0.5877 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.4146, allocations: 5.766 kB / 0.5877 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003237/0.4149, allocations: 36.36 kB / 0.5878 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.4149, allocations: 4.938 kB / 0.5878 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.415, allocations: 6.031 kB / 0.5878 GB, free: 15.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.213e-05/0.415, allocations: 107.7 kB / 0.5879 GB, free: 15.37 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4151, allocations: 0 / 0.5879 GB, free: 15.37 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002706/0.4153, allocations: 23.22 kB / 0.5879 GB, free: 15.36 MB / 446.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 (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.001005/0.4163, allocations: 0.8188 MB / 0.5887 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007223/0.4171, allocations: 164.7 kB / 0.5889 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4171, allocations: 0 / 0.5889 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003364/0.4174, allocations: 85.56 kB / 0.5889 GB, free: 14.61 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.4178, allocations: 16.78 kB / 0.589 GB, free: 14.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003107/0.4209, allocations: 1.826 MB / 0.5907 GB, free: 13.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.4211, allocations: 0.702 MB / 0.5914 GB, free: 12.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.492e-05/0.4212, allocations: 13.12 kB / 0.5914 GB, free: 12.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.047e-05/0.4213, allocations: 39.66 kB / 0.5915 GB, free: 12.47 MB / 446.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4213, allocations: 0 / 0.5915 GB, free: 12.47 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01864/0.44, allocations: 2.694 MB / 0.5941 GB, free: 11.67 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.434/7.874, allocations: 9.406 kB / 0.5941 GB, free: 11.66 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Utilities_Math_Examples_SmoothBlocks.fmu > IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)