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.0008009/0.0008006, allocations: 97.33 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000912/0.000912, allocations: 183.3 kB / 16.91 MB, free: 6.914 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.368/1.368, allocations: 205.4 MB / 223.1 MB, free: 5.504 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.3161/0.3161, allocations: 43.58 MB / 315 MB, free: 9.055 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.000481/0.0004811, allocations: 20 kB / 384.7 MB, free: 7.793 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.111, allocations: 58.87 MB / 443.5 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0005505/0.1116, allocations: 232.4 kB / 443.8 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.1134, allocations: 1.404 MB / 445.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.959e-06/0.1134, allocations: 0 / 445.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.261e-05/0.1135, allocations: 0 / 445.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.408e-06/0.1135, allocations: 0 / 445.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.1139, allocations: 79.86 kB / 445.2 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.664e-05/0.1139, allocations: 4 kB / 445.3 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.266e-05/0.114, allocations: 3.984 kB / 445.3 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.51e-05/0.114, allocations: 0 / 445.3 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.455e-05/0.114, allocations: 4 kB / 445.3 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.1141, allocations: 7.984 kB / 445.3 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001566/0.1142, allocations: 35.91 kB / 445.3 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.494e-06/0.1142, allocations: 4 kB / 445.3 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.886e-05/0.1143, allocations: 29.7 kB / 445.3 MB, free: 11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.1144, allocations: 43.81 kB / 445.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1144, allocations: 0 / 445.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1144, allocations: 0 / 445.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.497e-06/0.1144, allocations: 0 / 445.4 MB, free: 10.96 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.0002804/0.1147, allocations: 345.3 kB / 445.7 MB, free: 10.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1148, allocations: 8.031 kB / 445.7 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.179e-05/0.1148, allocations: 34.75 kB / 445.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.142e-05/0.1148, allocations: 8.844 kB / 445.8 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.598e-05/0.1149, allocations: 160.4 kB / 445.9 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.1149, allocations: 384 / 445.9 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.465e-06/0.115, allocations: 4.375 kB / 445.9 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.343e-05/0.115, allocations: 37.75 kB / 446 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1151, allocations: 3.984 kB / 446 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.1151, allocations: 0 / 446 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.1151, allocations: 4 kB / 446 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.551e-05/0.1151, allocations: 4 kB / 446 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000133/0.1152, allocations: 145.7 kB / 446.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.699e-05/0.1153, allocations: 22.61 kB / 446.1 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.609e-05/0.1153, allocations: 4.859 kB / 446.1 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.629e-06/0.1153, allocations: 0 / 446.1 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.884e-05/0.1154, allocations: 68.12 kB / 446.2 MB, free: 9.945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.1154, allocations: 0 / 446.2 MB, free: 9.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001341/0.1155, allocations: 63.47 kB / 446.3 MB, free: 9.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.1156, allocations: 81.11 kB / 446.4 MB, free: 9.773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.053e-05/0.1156, allocations: 93.86 kB / 446.4 MB, free: 9.672 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.708e-06/0.1156, allocations: 25.7 kB / 446.5 MB, free: 9.641 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.284e-05/0.1157, allocations: 80.14 kB / 446.5 MB, free: 9.559 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.1157, allocations: 0 / 446.5 MB, free: 9.559 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-05/0.1157, allocations: 17.64 kB / 446.6 MB, free: 9.535 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.578e-05/0.1158, allocations: 310.8 kB / 446.9 MB, free: 9.223 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.366e-06/0.1158, allocations: 8.125 kB / 446.9 MB, free: 9.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.178e-06/0.1158, allocations: 0 / 446.9 MB, free: 9.215 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.141e-05/0.1159, allocations: 64.2 kB / 446.9 MB, free: 9.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1159, allocations: 0 / 446.9 MB, free: 9.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.076e-05/0.116, allocations: 67.39 kB / 447 MB, free: 9.059 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.116, allocations: 33.64 kB / 447 MB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.116, allocations: 0 / 447 MB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.368e-06/0.116, allocations: 0 / 447 MB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.116, allocations: 96 / 447 MB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.116, allocations: 4 kB / 447 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.452e-05/0.1161, allocations: 4 kB / 447 MB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.1161, allocations: 4 kB / 447.1 MB, free: 9.008 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 6.603e-05/0.1161, allocations: 135.5 kB / 447.2 MB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.247e-06/0.1162, allocations: 7.938 kB / 447.2 MB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.013e-05/0.1162, allocations: 7.109 kB / 447.2 MB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-06/0.1162, allocations: 0 / 447.2 MB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.1162, allocations: 0 / 447.2 MB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-06/0.1162, allocations: 4 kB / 447.2 MB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.347e-05/0.1163, allocations: 145.7 kB / 447.3 MB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1163, allocations: 3.938 kB / 447.3 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.785e-06/0.1163, allocations: 4 kB / 447.4 MB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.1163, allocations: 3.938 kB / 447.4 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-06/0.1163, allocations: 0 / 447.4 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1163, allocations: 3.984 kB / 447.4 MB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1163, allocations: 0 / 447.4 MB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.705e-05/0.1164, allocations: 90.84 kB / 447.4 MB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.882e-05/0.1165, allocations: 81.33 kB / 447.5 MB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.1165, allocations: 3.984 kB / 447.5 MB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-06/0.1165, allocations: 0 / 447.5 MB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.046e-05/0.1165, allocations: 4 kB / 447.5 MB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.1165, allocations: 0 / 447.5 MB, free: 8.414 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.277e-05/0.1165, allocations: 75.28 kB / 447.6 MB, free: 8.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1165, allocations: 0 / 447.6 MB, free: 8.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002204/0.1168, allocations: 19.94 kB / 447.6 MB, free: 8.32 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.0004672/0.1172, allocations: 0.6762 MB / 448.3 MB, free: 7.613 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.296e-05/0.1173, allocations: 55.41 kB / 448.4 MB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1173, allocations: 0 / 448.4 MB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.722e-05/0.1174, allocations: 59.5 kB / 448.4 MB, free: 7.477 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.1175, allocations: 8 kB / 448.4 MB, free: 7.469 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002394/0.1177, allocations: 112.3 kB / 448.5 MB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002057/0.118, allocations: 0.6809 MB / 449.2 MB, free: 6.613 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.418e-06/0.118, allocations: 0 / 449.2 MB, free: 6.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.828e-06/0.118, allocations: 7.438 kB / 449.2 MB, free: 6.605 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.118, allocations: 0 / 449.2 MB, free: 6.605 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009865/0.1279, allocations: 1.282 MB / 450.5 MB, free: 5.352 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.1281, allocations: 243.2 kB / 450.7 MB, free: 5.082 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/1.879, allocations: 0 / 450.7 MB, free: 5.082 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