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.001447/0.001447, allocations: 103 kB / 16.27 MB, free: 5.93 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.001636/0.001636, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.429/1.429, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2053/0.2053, allocations: 43.52 MB / 313.9 MB, free: 0.5156 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.00155/0.00155, allocations: 67.89 kB / 382.8 MB, free: 56.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.09735, allocations: 57.79 MB / 440.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00172/0.09911, allocations: 0.4935 MB / 441.1 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.1005, allocations: 1.425 MB / 442.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.049e-05/0.1006, allocations: 0 / 442.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.301e-05/0.1006, allocations: 0 / 442.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.268e-06/0.1006, allocations: 0 / 442.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004576/0.1011, allocations: 107.6 kB / 442.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.181e-05/0.1011, allocations: 0 / 442.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.84e-05/0.1012, allocations: 3.984 kB / 442.6 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.343e-05/0.1012, allocations: 4 kB / 442.6 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.03e-05/0.1012, allocations: 7.984 kB / 442.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.733e-06/0.1012, allocations: 0 / 442.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.1014, allocations: 39.97 kB / 442.7 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.712e-06/0.1014, allocations: 0 / 442.7 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.535e-05/0.1014, allocations: 4 kB / 442.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.288e-05/0.1015, allocations: 39.94 kB / 442.7 MB, free: 4.656 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1016, allocations: 0 / 442.7 MB, free: 4.656 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1016, allocations: 0 / 442.7 MB, free: 4.656 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.1016, allocations: 0 / 442.7 MB, free: 4.656 MB / 318.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.0002097/0.1018, allocations: 353.1 kB / 443.1 MB, free: 4.258 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.1018, allocations: 11.89 kB / 443.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.241e-05/0.1018, allocations: 34.75 kB / 443.1 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.156e-05/0.1019, allocations: 8.875 kB / 443.1 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.025e-05/0.1019, allocations: 160.4 kB / 443.3 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.676e-06/0.1019, allocations: 4.375 kB / 443.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.25e-06/0.1019, allocations: 384 / 443.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.214e-05/0.102, allocations: 37.81 kB / 443.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.102, allocations: 0 / 443.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.801e-06/0.102, allocations: 0 / 443.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1021, allocations: 0 / 443.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.662e-05/0.1021, allocations: 0 / 443.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.512e-05/0.1022, allocations: 145.7 kB / 443.5 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.813e-05/0.1022, allocations: 26.52 kB / 443.5 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.175e-05/0.1022, allocations: 12.95 kB / 443.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.692e-06/0.1022, allocations: 3.984 kB / 443.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.1022, allocations: 64.19 kB / 443.6 MB, free: 3.629 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.1023, allocations: 0 / 443.6 MB, free: 3.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001257/0.1024, allocations: 59.41 kB / 443.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.542e-05/0.1024, allocations: 81.05 kB / 443.7 MB, free: 3.461 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.605e-05/0.1024, allocations: 97.98 kB / 443.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.28e-06/0.1025, allocations: 25.7 kB / 443.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.405e-06/0.1025, allocations: 80.14 kB / 443.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.96e-05/0.1025, allocations: 8.266 kB / 443.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.199e-05/0.1025, allocations: 9.719 kB / 443.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.335e-05/0.1026, allocations: 310.8 kB / 444.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.576e-06/0.1026, allocations: 4 kB / 444.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.699e-06/0.1026, allocations: 0 / 444.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.71e-05/0.1026, allocations: 72.27 kB / 444.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1026, allocations: 0 / 444.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.927e-05/0.1027, allocations: 59.39 kB / 444.4 MB, free: 2.746 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.1027, allocations: 37.64 kB / 444.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.1027, allocations: 0 / 444.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.1027, allocations: 7.875 kB / 444.4 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.1027, allocations: 0 / 444.4 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.457e-06/0.1027, allocations: 0 / 444.4 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.394e-05/0.1027, allocations: 0 / 444.4 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.1028, allocations: 8.031 kB / 444.4 MB, free: 2.688 MB / 318.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 4.219e-05/0.1028, allocations: 139.4 kB / 444.6 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.107e-06/0.1028, allocations: 7.922 kB / 444.6 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.335e-06/0.1028, allocations: 7.125 kB / 444.6 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1028, allocations: 0 / 444.6 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1028, allocations: 0 / 444.6 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.1029, allocations: 0 / 444.6 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.421e-05/0.1029, allocations: 145.7 kB / 444.7 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1029, allocations: 0 / 444.7 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.1029, allocations: 4 kB / 444.7 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1029, allocations: 11.92 kB / 444.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.431e-06/0.1029, allocations: 0 / 444.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1029, allocations: 0 / 444.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1029, allocations: 0 / 444.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.14e-05/0.103, allocations: 90.78 kB / 444.8 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.353e-05/0.103, allocations: 85.03 kB / 444.9 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.103, allocations: 0 / 444.9 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.207e-06/0.1031, allocations: 4.031 kB / 444.9 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.416e-06/0.1031, allocations: 0 / 444.9 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.1031, allocations: 4 kB / 444.9 MB, free: 2.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.719e-06/0.1031, allocations: 75.28 kB / 445 MB, free: 2.016 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1031, allocations: 0 / 445 MB, free: 2.016 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.1033, allocations: 12 kB / 445 MB, free: 2.004 MB / 318.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.0003413/0.1037, allocations: 0.6788 MB / 445.7 MB, free: 1.301 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 6.462e-05/0.1037, allocations: 59.34 kB / 445.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1038, allocations: 0 / 445.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.784e-05/0.1038, allocations: 63.39 kB / 445.8 MB, free: 1.156 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.1039, allocations: 7.938 kB / 445.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002207/0.1041, allocations: 106.8 kB / 445.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.527e-05/0.1042, allocations: 0.669 MB / 446.6 MB, free: 316 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.075e-06/0.1042, allocations: 7.984 kB / 446.6 MB, free: 308 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.708e-06/0.1042, allocations: 7.438 kB / 446.6 MB, free: 300 kB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1043, allocations: 0 / 446.6 MB, free: 300 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01667/0.1209, allocations: 1.485 MB / 448.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.292/7.413, allocations: 7.344 kB / 448.1 MB, free: 14.81 MB / 334.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