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.001763/0.001763, allocations: 104.2 kB / 16.41 MB, free: 6.465 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.001984/0.001984, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.423/1.423, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2144/0.2144, allocations: 43.52 MB / 314.1 MB, free: 448 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.002304/0.002305, allocations: 73.61 kB / 441.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1187, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.002042/0.1208, allocations: 0.4908 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002375/0.1232, allocations: 1.427 MB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.887e-05/0.1232, allocations: 0 / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.403e-05/0.1233, allocations: 0 / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.193e-06/0.1233, allocations: 0 / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006391/0.124, allocations: 111.6 kB / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.642e-05/0.124, allocations: 8 kB / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.297e-05/0.1241, allocations: 0 / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.599e-05/0.1241, allocations: 0 / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.353e-05/0.1241, allocations: 0 / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.534e-06/0.1241, allocations: 0 / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003657/0.1245, allocations: 75.86 kB / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.005e-06/0.1245, allocations: 0 / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.803e-05/0.1245, allocations: 4 kB / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.1247, allocations: 31.89 kB / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1247, allocations: 0 / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1247, allocations: 0 / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.1247, 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.0004056/0.1251, allocations: 341.2 kB / 0.4898 GB, free: 9.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.1252, allocations: 11.89 kB / 0.4898 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.873e-05/0.1252, allocations: 38.73 kB / 0.4899 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.797e-05/0.1253, allocations: 0.9375 kB / 0.4899 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.1254, allocations: 160.4 kB / 0.49 GB, free: 9.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.1254, allocations: 4.375 kB / 0.49 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.093e-06/0.1254, allocations: 384 / 0.49 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.929e-05/0.1255, allocations: 37.83 kB / 0.4901 GB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.1255, allocations: 3.938 kB / 0.4901 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.1256, allocations: 0 / 0.4901 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.1256, allocations: 3.938 kB / 0.4901 GB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.787e-05/0.1256, allocations: 0 / 0.4901 GB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001766/0.1258, allocations: 149.7 kB / 0.4902 GB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.08e-05/0.1258, allocations: 18.58 kB / 0.4902 GB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.971e-05/0.1259, allocations: 4.953 kB / 0.4902 GB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.41e-06/0.1259, allocations: 4 kB / 0.4902 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.001e-05/0.1259, allocations: 64.2 kB / 0.4903 GB, free: 9.129 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.573e-06/0.1259, allocations: 0 / 0.4903 GB, free: 9.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000218/0.1262, allocations: 67.33 kB / 0.4904 GB, free: 9.051 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.1262, allocations: 77.11 kB / 0.4904 GB, free: 8.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.961e-05/0.1263, allocations: 93.98 kB / 0.4905 GB, free: 8.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.1263, allocations: 25.7 kB / 0.4905 GB, free: 8.824 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.737e-05/0.1264, allocations: 80.14 kB / 0.4906 GB, free: 8.742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.078e-05/0.1264, allocations: 4 kB / 0.4906 GB, free: 8.738 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.158e-05/0.1264, allocations: 13.72 kB / 0.4906 GB, free: 8.719 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1266, allocations: 314.8 kB / 0.4909 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.163e-05/0.1266, allocations: 0 / 0.4909 GB, free: 8.402 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.462e-06/0.1266, allocations: 7.938 kB / 0.4909 GB, free: 8.395 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.313e-05/0.1267, allocations: 68.27 kB / 0.491 GB, free: 8.312 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1267, allocations: 0 / 0.491 GB, free: 8.312 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.826e-05/0.1268, allocations: 59.41 kB / 0.4911 GB, free: 8.242 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/0.1268, allocations: 41.62 kB / 0.4911 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1268, allocations: 0 / 0.4911 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.1268, allocations: 0 / 0.4911 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.1269, allocations: 0 / 0.4911 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.1269, allocations: 0 / 0.4911 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.635e-05/0.1269, allocations: 0 / 0.4911 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.1269, allocations: 8.031 kB / 0.4911 GB, free: 8.188 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 0.0001101/0.127, allocations: 135.5 kB / 0.4912 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.054e-05/0.127, allocations: 3.938 kB / 0.4912 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.507e-05/0.1271, allocations: 7.125 kB / 0.4913 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.1271, allocations: 4 kB / 0.4913 GB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.1271, allocations: 0 / 0.4913 GB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.1271, allocations: 3.984 kB / 0.4913 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.1272, allocations: 141.7 kB / 0.4914 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1272, allocations: 0 / 0.4914 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.1272, allocations: 4 kB / 0.4914 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.1272, allocations: 7.938 kB / 0.4914 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.1272, allocations: 4 kB / 0.4914 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.1273, allocations: 0 / 0.4914 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1273, allocations: 7.875 kB / 0.4914 GB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001083/0.1274, allocations: 94.81 kB / 0.4915 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.659e-05/0.1274, allocations: 81.05 kB / 0.4916 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.1275, allocations: 0 / 0.4916 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.538e-06/0.1275, allocations: 4.031 kB / 0.4916 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.457e-05/0.1275, allocations: 7.984 kB / 0.4916 GB, free: 7.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.1275, allocations: 3.984 kB / 0.4916 GB, free: 7.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.727e-05/0.1275, allocations: 75.28 kB / 0.4917 GB, free: 7.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1275, allocations: 0 / 0.4917 GB, free: 7.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002066/0.1278, 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.0006581/0.1284, allocations: 0.6595 MB / 0.4923 GB, free: 6.797 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001138/0.1286, allocations: 59.34 kB / 0.4924 GB, free: 6.727 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1286, allocations: 0 / 0.4924 GB, free: 6.727 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.296e-05/0.1286, allocations: 59.39 kB / 0.4924 GB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.1288, allocations: 3.656 kB / 0.4924 GB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003027/0.1291, allocations: 118.6 kB / 0.4926 GB, free: 6.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.1294, allocations: 0.6768 MB / 0.4932 GB, free: 5.797 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.945e-06/0.1294, allocations: 0 / 0.4932 GB, free: 5.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.788e-05/0.1294, allocations: 11.38 kB / 0.4932 GB, free: 5.785 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1294, allocations: 0 / 0.4932 GB, free: 5.785 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02194/0.1514, allocations: 1.31 MB / 0.4945 GB, free: 4.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.605/7.756, allocations: 12 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