Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001707/0.001707, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001894/0.001894, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2234/0.2234, allocations: 46.11 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002488/0.002488, allocations: 75.88 kB / 480.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3729, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001914/0.3748, allocations: 500 kB / 0.5311 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003002/0.3779, allocations: 1.647 MB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.458e-05/0.3779, allocations: 1.125 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.654e-05/0.378, allocations: 0 / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.159e-06/0.378, allocations: 0 / 0.5327 GB, free: 11.7 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:4:3-36:22:writable] Warning: Pure function 'ModelicaTest.Math.ScalarFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008165/0.3788, allocations: 160.7 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.05e-05/0.3789, allocations: 5.719 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.633e-05/0.3789, allocations: 1.844 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.789e-05/0.379, allocations: 7.875 kB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.281e-05/0.379, allocations: 1.938 kB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.116e-06/0.379, allocations: 0 / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000427/0.3794, allocations: 118.5 kB / 0.533 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.933e-06/0.3795, allocations: 0 / 0.533 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.947e-05/0.3795, allocations: 5.266 kB / 0.533 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.3797, allocations: 33.88 kB / 0.533 GB, free: 11.51 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3797, allocations: 4 kB / 0.533 GB, free: 11.51 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3797, allocations: 0 / 0.533 GB, free: 11.51 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.3797, allocations: 0 / 0.533 GB, free: 11.51 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003955/0.3801, allocations: 349 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.3802, allocations: 10.5 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.661e-05/0.3802, allocations: 30.75 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.587e-05/0.3802, allocations: 0.9375 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.3804, allocations: 164.4 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.3804, allocations: 7.094 kB / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.282e-06/0.3804, allocations: 8.312 kB / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.248e-05/0.3805, allocations: 40.92 kB / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.3805, allocations: 0 / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-06/0.3805, allocations: 0 / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.3806, allocations: 0 / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.737e-05/0.3806, allocations: 0.7188 kB / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001688/0.3808, allocations: 146.8 kB / 0.5337 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.733e-05/0.3808, allocations: 16.77 kB / 0.5337 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.934e-05/0.3808, allocations: 10.33 kB / 0.5337 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.983e-06/0.3809, allocations: 3.938 kB / 0.5337 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.895e-05/0.3809, allocations: 65.89 kB / 0.5338 GB, free: 10.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.3809, allocations: 0 / 0.5338 GB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001858/0.3811, allocations: 63.52 kB / 0.5339 GB, free: 10.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.3812, allocations: 77.11 kB / 0.5339 GB, free: 10.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.3813, allocations: 95.47 kB / 0.534 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.3814, allocations: 29.83 kB / 0.5341 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.98e-05/0.3814, allocations: 80.14 kB / 0.5341 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.3814, allocations: 5.766 kB / 0.5341 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.543e-05/0.3815, allocations: 15.75 kB / 0.5342 GB, free: 10.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.3817, allocations: 310.8 kB / 0.5345 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.09e-05/0.3817, allocations: 1.062 kB / 0.5345 GB, free: 9.809 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.618e-06/0.3817, allocations: 6.281 kB / 0.5345 GB, free: 9.805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.205e-05/0.3818, allocations: 62.38 kB / 0.5345 GB, free: 9.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.3818, allocations: 4 kB / 0.5345 GB, free: 9.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.346e-05/0.3819, allocations: 62.12 kB / 0.5346 GB, free: 9.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.684e-05/0.3819, allocations: 35.14 kB / 0.5346 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.382, allocations: 0 / 0.5346 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.382, allocations: 1.375 kB / 0.5346 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.368e-06/0.382, allocations: 4 kB / 0.5346 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.382, allocations: 0 / 0.5346 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.683e-05/0.382, allocations: 1.375 kB / 0.5346 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.3821, allocations: 5.359 kB / 0.5346 GB, free: 9.617 MB / 398.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * 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.0001274/0.3822, allocations: 140.9 kB / 0.5348 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.3822, allocations: 5.312 kB / 0.5348 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.619e-05/0.3822, allocations: 11.05 kB / 0.5348 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3823, allocations: 5.312 kB / 0.5348 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.3823, allocations: 0 / 0.5348 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.3823, allocations: 0 / 0.5348 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.3825, allocations: 151 kB / 0.5349 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3825, allocations: 1.375 kB / 0.5349 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-07/0.3825, allocations: 0 / 0.5349 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3825, allocations: 3.938 kB / 0.5349 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.3825, allocations: 9.312 kB / 0.5349 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3825, allocations: 0 / 0.5349 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3825, allocations: 0 / 0.5349 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001377/0.3827, allocations: 89.83 kB / 0.535 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.218e-05/0.3828, allocations: 82.42 kB / 0.5351 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.3828, allocations: 1.375 kB / 0.5351 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.031e-05/0.3828, allocations: 0 / 0.5351 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.714e-05/0.3828, allocations: 5.406 kB / 0.5351 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.3828, allocations: 0 / 0.5351 GB, free: 9.039 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.805e-05/0.3829, allocations: 76.66 kB / 0.5352 GB, free: 8.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.695e-06/0.3829, allocations: 0 / 0.5352 GB, free: 8.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003352/0.3832, allocations: 24.23 kB / 0.5352 GB, free: 8.953 MB / 398.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * 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.0007681/0.384, allocations: 0.6673 MB / 0.5359 GB, free: 8.301 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001204/0.3841, allocations: 60.89 kB / 0.5359 GB, free: 8.234 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3842, allocations: 0 / 0.5359 GB, free: 8.234 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.536e-05/0.3842, allocations: 58.09 kB / 0.536 GB, free: 8.168 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001881/0.3844, allocations: 5.25 kB / 0.536 GB, free: 8.168 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003753/0.3848, allocations: 123.2 kB / 0.5361 GB, free: 8.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.3852, allocations: 0.6703 MB / 0.5368 GB, free: 7.324 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.815e-06/0.3852, allocations: 3.938 kB / 0.5368 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.002e-05/0.3852, allocations: 8.812 kB / 0.5368 GB, free: 7.312 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3853, allocations: 0 / 0.5368 GB, free: 7.312 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03035/0.4156, allocations: 1.475 MB / 0.5382 GB, free: 6.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.742/8.157, allocations: 10.61 kB / 0.5382 GB, free: 6.449 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1)