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.001336/0.001336, allocations: 107 kB / 15.98 MB, free: 6.352 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.001303/0.001303, allocations: 189.2 kB / 16.91 MB, free: 6.191 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.629/1.629, allocations: 205.1 MB / 222.8 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3697/0.3697, allocations: 43.5 MB / 313.6 MB, free: 8.555 MB / 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.001416/0.001416, allocations: 71.89 kB / 382.3 MB, free: 8.504 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1056, allocations: 57.77 MB / 440.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001652/0.1073, allocations: 0.5619 MB / 440.7 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.109, allocations: 1.408 MB / 442.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.847e-05/0.1091, allocations: 4 kB / 442.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.656e-05/0.1091, allocations: 0 / 442.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.09e-06/0.1091, allocations: 0 / 442.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.1096, allocations: 95.75 kB / 442.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.317e-05/0.1096, allocations: 8 kB / 442.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.459e-05/0.1097, allocations: 4 kB / 442.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.434e-05/0.1097, allocations: 0 / 442.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.962e-05/0.1097, allocations: 0 / 442.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.83e-06/0.1097, allocations: 0 / 442.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001561/0.1099, allocations: 43.95 kB / 442.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.163e-06/0.1099, allocations: 0 / 442.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.747e-05/0.1099, allocations: 0 / 442.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.826e-05/0.11, allocations: 51.81 kB / 442.3 MB, free: 12.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.11, allocations: 0 / 442.3 MB, free: 12.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1101, allocations: 0 / 442.3 MB, free: 12.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1101, allocations: 0 / 442.3 MB, free: 12.44 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.0002851/0.1104, allocations: 349.3 kB / 442.6 MB, free: 12.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1104, allocations: 11.89 kB / 442.6 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.957e-05/0.1104, allocations: 30.75 kB / 442.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.526e-05/0.1105, allocations: 4.844 kB / 442.7 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.732e-05/0.1105, allocations: 164.4 kB / 442.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.1106, allocations: 4.375 kB / 442.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.022e-06/0.1106, allocations: 4.375 kB / 442.8 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.223e-05/0.1106, allocations: 29.83 kB / 442.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-06/0.1107, allocations: 3.938 kB / 442.9 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.1107, allocations: 4 kB / 442.9 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.1107, allocations: 0 / 442.9 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.733e-05/0.1107, allocations: 7.922 kB / 442.9 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000104/0.1108, allocations: 145.7 kB / 443 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.54e-05/0.1109, allocations: 22.61 kB / 443 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.351e-05/0.1109, allocations: 4.859 kB / 443 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.243e-06/0.1109, allocations: 0 / 443 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/0.1109, allocations: 60.27 kB / 443.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1109, allocations: 4 kB / 443.1 MB, free: 11.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001556/0.1111, allocations: 67.33 kB / 443.2 MB, free: 11.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.1112, allocations: 81.11 kB / 443.2 MB, free: 11.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.221e-05/0.1112, allocations: 89.98 kB / 443.3 MB, free: 11.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.1112, allocations: 29.7 kB / 443.4 MB, free: 11.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.122e-05/0.1112, allocations: 84.08 kB / 443.4 MB, free: 11.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.332e-05/0.1113, allocations: 0 / 443.4 MB, free: 11.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.1113, allocations: 13.72 kB / 443.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.742e-05/0.1114, allocations: 314.8 kB / 443.8 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.376e-06/0.1114, allocations: 0 / 443.8 MB, free: 10.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.438e-06/0.1114, allocations: 0 / 443.8 MB, free: 10.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.971e-05/0.1114, allocations: 68.33 kB / 443.8 MB, free: 10.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1115, allocations: 0 / 443.8 MB, free: 10.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.501e-05/0.1115, allocations: 63.34 kB / 443.9 MB, free: 10.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.1116, allocations: 37.62 kB / 443.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.1116, allocations: 0 / 443.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.1116, allocations: 4 kB / 443.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.1116, allocations: 0 / 443.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.1116, allocations: 0 / 443.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.306e-05/0.1116, allocations: 0 / 443.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.1116, allocations: 0 / 443.9 MB, free: 10.49 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 7.319e-05/0.1117, allocations: 143.6 kB / 444.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.406e-06/0.1117, allocations: 3.938 kB / 444.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.208e-06/0.1117, allocations: 3.125 kB / 444.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.1117, allocations: 0 / 444.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1117, allocations: 3.984 kB / 444.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.1117, allocations: 0 / 444.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.405e-05/0.1118, allocations: 149.7 kB / 444.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.1118, allocations: 0 / 444.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1118, allocations: 0 / 444.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1118, allocations: 3.938 kB / 444.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.1119, allocations: 4 kB / 444.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1119, allocations: 0 / 444.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1119, allocations: 7.938 kB / 444.2 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.555e-05/0.112, allocations: 94.77 kB / 444.3 MB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.049e-05/0.112, allocations: 85.33 kB / 444.4 MB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.112, allocations: 4 kB / 444.4 MB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.055e-05/0.112, allocations: 7.969 kB / 444.4 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.193e-05/0.112, allocations: 4.031 kB / 444.4 MB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.1121, allocations: 0 / 444.4 MB, free: 9.875 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.1e-05/0.1121, allocations: 75.28 kB / 444.5 MB, free: 9.801 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1121, allocations: 3.938 kB / 444.5 MB, free: 9.797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001923/0.1123, allocations: 12 kB / 444.5 MB, free: 9.785 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.0004719/0.1128, allocations: 0.6801 MB / 445.2 MB, free: 9.074 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.577e-05/0.1129, allocations: 63.41 kB / 445.3 MB, free: 9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1129, allocations: 0 / 445.3 MB, free: 9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.763e-05/0.1129, allocations: 55.41 kB / 445.3 MB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.113, allocations: 3.594 kB / 445.3 MB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000258/0.1133, allocations: 118.7 kB / 445.4 MB, free: 8.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.1135, allocations: 0.6767 MB / 446.1 MB, free: 8.074 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.079e-06/0.1135, allocations: 0 / 446.1 MB, free: 8.074 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.753e-05/0.1135, allocations: 11.44 kB / 446.1 MB, free: 8.062 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1136, allocations: 0 / 446.1 MB, free: 8.062 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009842/0.1234, allocations: 1.404 MB / 447.5 MB, free: 6.676 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001783/0.1236, allocations: 236.2 kB / 447.8 MB, free: 6.414 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.011, allocations: 3.938 kB / 447.8 MB, free: 6.41 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches