Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_TestScalarFunctions",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: 104.9 kB / 16.4 MB, free: 6.508 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.00113/0.00113, allocations: 192.2 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.341/1.341, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2078/0.2078, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 69.47 kB / 441.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1071, allocations: 57.78 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001608/0.1088, allocations: 0.4987 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.1107, allocations: 1.427 MB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.161e-05/0.1107, allocations: 0 / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.201e-05/0.1107, allocations: 0 / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.473e-06/0.1107, allocations: 0 / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005053/0.1113, allocations: 103.7 kB / 0.4894 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.095e-05/0.1113, allocations: 12 kB / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.791e-05/0.1114, allocations: 0 / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.428e-05/0.1114, allocations: 0 / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.999e-05/0.1114, allocations: 0 / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.684e-06/0.1114, allocations: 0 / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002833/0.1117, allocations: 67.92 kB / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.216e-05/0.1117, allocations: 0 / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.943e-05/0.1117, allocations: 7.938 kB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.1119, allocations: 35.89 kB / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1119, allocations: 0 / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1119, allocations: 0 / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1119, allocations: 0 / 0.4895 GB, free: 10.14 MB / 382.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.0003141/0.1122, allocations: 345.2 kB / 0.4898 GB, free: 9.746 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.1123, allocations: 11.89 kB / 0.4898 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.744e-05/0.1123, allocations: 42.67 kB / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.199e-05/0.1123, allocations: 0.9375 kB / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.1124, allocations: 160.4 kB / 0.49 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.1124, allocations: 4.375 kB / 0.49 GB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.1125, allocations: 384 / 0.49 GB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.749e-05/0.1125, allocations: 33.83 kB / 0.49 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.1125, allocations: 0 / 0.49 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-06/0.1126, allocations: 0 / 0.49 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.1126, allocations: 0 / 0.49 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.653e-05/0.1126, allocations: 3.938 kB / 0.4901 GB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001222/0.1127, allocations: 153.7 kB / 0.4902 GB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.068e-05/0.1128, allocations: 18.58 kB / 0.4902 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.834e-05/0.1128, allocations: 12.94 kB / 0.4902 GB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.432e-06/0.1128, allocations: 0 / 0.4902 GB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.938e-05/0.1129, allocations: 60.2 kB / 0.4903 GB, free: 9.125 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.1129, allocations: 0 / 0.4903 GB, free: 9.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000161/0.113, allocations: 71.33 kB / 0.4904 GB, free: 9.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.1131, allocations: 77.11 kB / 0.4904 GB, free: 8.949 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.758e-05/0.1131, allocations: 93.98 kB / 0.4905 GB, free: 8.848 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.1131, allocations: 25.7 kB / 0.4905 GB, free: 8.816 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.369e-05/0.1132, allocations: 80.14 kB / 0.4906 GB, free: 8.734 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.1132, allocations: 7.984 kB / 0.4906 GB, free: 8.727 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.464e-05/0.1132, allocations: 9.719 kB / 0.4906 GB, free: 8.711 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1133, allocations: 310.8 kB / 0.4909 GB, free: 8.398 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.373e-05/0.1134, allocations: 11.98 kB / 0.4909 GB, free: 8.387 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.538e-06/0.1134, allocations: 0 / 0.4909 GB, free: 8.387 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.965e-05/0.1134, allocations: 64.33 kB / 0.491 GB, free: 8.309 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1134, allocations: 3.938 kB / 0.491 GB, free: 8.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.132e-05/0.1135, allocations: 59.34 kB / 0.4911 GB, free: 8.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.29e-05/0.1136, allocations: 41.62 kB / 0.4911 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.1136, allocations: 0 / 0.4911 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.1136, allocations: 0 / 0.4911 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-07/0.1136, allocations: 0 / 0.4911 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.1136, allocations: 0 / 0.4911 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.404e-05/0.1136, allocations: 0 / 0.4911 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.1136, allocations: 4.031 kB / 0.4911 GB, free: 8.184 MB / 382.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 8.164e-05/0.1137, allocations: 143.5 kB / 0.4912 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.218e-06/0.1137, allocations: 3.938 kB / 0.4912 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.236e-05/0.1137, allocations: 7.125 kB / 0.4913 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.1138, allocations: 0 / 0.4913 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1138, allocations: 0 / 0.4913 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1138, allocations: 3.984 kB / 0.4913 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.894e-05/0.1139, allocations: 145.6 kB / 0.4914 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.1139, allocations: 0 / 0.4914 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.1139, allocations: 0 / 0.4914 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.1139, allocations: 11.94 kB / 0.4914 GB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.1139, allocations: 4 kB / 0.4914 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.1139, allocations: 0 / 0.4914 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1139, allocations: 0 / 0.4914 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.73e-05/0.114, allocations: 94.77 kB / 0.4915 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.013e-05/0.1141, allocations: 81.05 kB / 0.4916 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.1141, allocations: 0 / 0.4916 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.151e-05/0.1141, allocations: 4.031 kB / 0.4916 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.004e-05/0.1141, allocations: 7.984 kB / 0.4916 GB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.1141, allocations: 0 / 0.4916 GB, free: 7.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.603e-05/0.1142, allocations: 75.28 kB / 0.4917 GB, free: 7.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1142, allocations: 0 / 0.4917 GB, free: 7.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002136/0.1144, allocations: 8 kB / 0.4917 GB, free: 7.492 MB / 382.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.0005147/0.1149, allocations: 0.6658 MB / 0.4923 GB, free: 6.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.616e-05/0.115, allocations: 59.41 kB / 0.4924 GB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.115, allocations: 0 / 0.4924 GB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.19e-05/0.1151, allocations: 63.33 kB / 0.4924 GB, free: 6.648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.1152, allocations: 0 / 0.4924 GB, free: 6.648 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002795/0.1155, allocations: 114.6 kB / 0.4925 GB, free: 6.496 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.1158, allocations: 0.6768 MB / 0.4932 GB, free: 5.793 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.182e-06/0.1158, allocations: 0 / 0.4932 GB, free: 5.793 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.353e-05/0.1158, allocations: 7.438 kB / 0.4932 GB, free: 5.785 MB / 382.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1158, allocations: 0 / 0.4932 GB, free: 5.785 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01587/0.1317, allocations: 1.314 MB / 0.4945 GB, free: 4.477 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.039/7.17, allocations: 16 kB / 0.4945 GB, free: 4.461 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches