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.001431/0.001431, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2223/0.2223, allocations: 46.12 MB / 344.2 MB, free: 11.54 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.002284/0.002284, allocations: 77.98 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1094, allocations: 62.45 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001746/0.1112, allocations: 487.7 kB / 480.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002494/0.1137, allocations: 1.656 MB / 482.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.119e-05/0.1138, allocations: 0 / 482.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.413e-05/0.1138, allocations: 0 / 482.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.248e-06/0.1138, allocations: 0 / 482.3 MB, free: 2.965 MB / 350.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.0006112/0.1144, allocations: 163.4 kB / 482.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.64e-05/0.1145, allocations: 4 kB / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.456e-05/0.1145, allocations: 0 / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.228e-05/0.1145, allocations: 0 / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.794e-05/0.1146, allocations: 0 / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.993e-06/0.1146, allocations: 4 kB / 482.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002911/0.1149, allocations: 115.9 kB / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.333e-06/0.1149, allocations: 3.938 kB / 482.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.902e-05/0.1149, allocations: 7.984 kB / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.1151, allocations: 91.89 kB / 482.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1151, allocations: 0 / 482.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1151, allocations: 4 kB / 482.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.1151, allocations: 0 / 482.7 MB, free: 2.578 MB / 350.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.0003598/0.1155, allocations: 373.4 kB / 483.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.1155, allocations: 8.031 kB / 483.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.1156, allocations: 34.69 kB / 483.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.27e-05/0.1156, allocations: 0.9375 kB / 483.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.1157, allocations: 164.4 kB / 483.3 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.1157, allocations: 4.375 kB / 483.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.021e-06/0.1158, allocations: 384 / 483.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.816e-05/0.1158, allocations: 33.83 kB / 483.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.1158, allocations: 0 / 483.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-06/0.1159, allocations: 4 kB / 483.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.1159, allocations: 0 / 483.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.562e-05/0.1159, allocations: 0 / 483.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001521/0.116, allocations: 153.7 kB / 483.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.019e-05/0.1161, allocations: 22.55 kB / 483.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.67e-05/0.1161, allocations: 4.859 kB / 483.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.745e-06/0.1161, allocations: 4 kB / 483.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.203e-05/0.1162, allocations: 64.27 kB / 483.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1162, allocations: 0 / 483.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001775/0.1164, allocations: 71.33 kB / 483.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.1164, allocations: 77.11 kB / 483.7 MB, free: 1.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.514e-05/0.1165, allocations: 89.86 kB / 483.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.1165, allocations: 25.7 kB / 483.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.244e-05/0.1166, allocations: 88.2 kB / 483.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.1166, allocations: 0 / 483.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/0.1166, allocations: 17.66 kB / 483.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1168, allocations: 314.8 kB / 484.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.568e-06/0.1168, allocations: 0 / 484.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.807e-06/0.1168, allocations: 3.984 kB / 484.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.124e-05/0.1169, allocations: 60.27 kB / 484.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1169, allocations: 0 / 484.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.46e-05/0.117, allocations: 67.41 kB / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/0.117, allocations: 36.3 kB / 484.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.117, allocations: 4 kB / 484.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.117, allocations: 3.984 kB / 484.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.117, allocations: 0 / 484.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.1171, allocations: 0 / 484.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.443e-05/0.1171, allocations: 0 / 484.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.1171, allocations: 0 / 484.4 MB, free: 0.6055 MB / 350.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.0001036/0.1172, allocations: 143.6 kB / 484.6 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.017e-06/0.1172, allocations: 3.938 kB / 484.6 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.865e-06/0.1172, allocations: 3.125 kB / 484.6 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1172, allocations: 0 / 484.6 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1172, allocations: 0 / 484.6 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.1172, allocations: 0 / 484.6 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.1174, allocations: 153.6 kB / 484.7 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.1174, allocations: 4 kB / 484.7 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1174, allocations: 0 / 484.7 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.1174, allocations: 3.938 kB / 484.7 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.1174, allocations: 0 / 484.7 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1174, allocations: 4 kB / 484.7 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1174, allocations: 4 kB / 484.7 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001011/0.1175, allocations: 94.75 kB / 484.8 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.707e-05/0.1176, allocations: 81.05 kB / 484.9 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/0.1176, allocations: 4 kB / 484.9 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-06/0.1176, allocations: 0 / 484.9 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.997e-06/0.1176, allocations: 0 / 484.9 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.1176, allocations: 4.031 kB / 484.9 MB, free: 8 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.173e-05/0.1177, allocations: 79.28 kB / 485 MB, free: 15.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1177, allocations: 0 / 485 MB, free: 15.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002693/0.118, allocations: 47.92 kB / 485 MB, free: 15.88 MB / 366.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.0006629/0.1186, allocations: 0.7054 MB / 485.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001045/0.1187, allocations: 59.34 kB / 485.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.1188, allocations: 0 / 485.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.672e-05/0.1188, allocations: 59.39 kB / 485.9 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001204/0.1189, allocations: 6.234 kB / 485.9 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003038/0.1192, allocations: 134.5 kB / 486 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.1195, allocations: 0.6691 MB / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.719e-06/0.1196, allocations: 4 kB / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.022e-05/0.1196, allocations: 7.438 kB / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1196, allocations: 0 / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02377/0.1434, allocations: 2.131 MB / 488.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.913/8.057, allocations: 4.172 kB / 488.8 MB, free: 12.05 MB / 366.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)