Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_0_0_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.00164/0.00164, allocations: 104.7 kB / 17.63 MB, free: 5.344 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.001714/0.001714, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2/0.2, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001217, allocations: 63.83 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1024, allocations: 60.82 MB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001588/0.104, allocations: 491.7 kB / 469.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.1058, allocations: 1.395 MB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.145e-05/0.1058, allocations: 0 / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.335e-05/0.1058, allocations: 0 / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.449e-06/0.1059, allocations: 0 / 471.2 MB, free: 12.39 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:4:3-36:22:writable] Warning: Pure function 'ModelicaTest.Math.ScalarFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000502/0.1064, allocations: 99.66 kB / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.681e-05/0.1064, allocations: 0 / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.752e-05/0.1065, allocations: 4 kB / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.629e-05/0.1065, allocations: 4 kB / 471.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.082e-05/0.1065, allocations: 3.984 kB / 471.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.696e-06/0.1065, allocations: 4 kB / 471.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001671/0.1067, allocations: 39.95 kB / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.386e-06/0.1067, allocations: 3.938 kB / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.072e-05/0.1067, allocations: 0 / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.1069, allocations: 43.94 kB / 471.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1069, allocations: 3.938 kB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1069, allocations: 4 kB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.1069, allocations: 0 / 471.4 MB, free: 12.18 MB / 350.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.0003042/0.1072, allocations: 337.3 kB / 471.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.1072, allocations: 16.03 kB / 471.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.58e-05/0.1073, allocations: 30.75 kB / 471.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.122e-05/0.1073, allocations: 0.9375 kB / 471.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.543e-05/0.1074, allocations: 168.4 kB / 472 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.1074, allocations: 384 / 472 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.1074, allocations: 4.375 kB / 472 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.459e-05/0.1075, allocations: 29.83 kB / 472 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.1075, allocations: 0 / 472 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-06/0.1075, allocations: 0 / 472 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.1076, allocations: 0 / 472 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.681e-05/0.1076, allocations: 15.92 kB / 472 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001137/0.1077, allocations: 141.7 kB / 472.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.626e-05/0.1077, allocations: 18.61 kB / 472.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.514e-05/0.1078, allocations: 8.859 kB / 472.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.891e-06/0.1078, allocations: 3.938 kB / 472.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.1078, allocations: 64.14 kB / 472.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1078, allocations: 0 / 472.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001623/0.108, allocations: 71.39 kB / 472.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.108, allocations: 81.11 kB / 472.4 MB, free: 11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.957e-05/0.1081, allocations: 89.86 kB / 472.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.1081, allocations: 29.7 kB / 472.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.179e-05/0.1081, allocations: 80.14 kB / 472.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.1082, allocations: 0 / 472.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.483e-05/0.1082, allocations: 13.72 kB / 472.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.836e-05/0.1083, allocations: 319 kB / 472.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.346e-06/0.1083, allocations: 0 / 472.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.99e-06/0.1083, allocations: 0 / 472.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.825e-05/0.1084, allocations: 60.27 kB / 473 MB, free: 10.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.1084, allocations: 0 / 473 MB, free: 10.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.555e-05/0.1084, allocations: 67.34 kB / 473 MB, free: 10.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.1085, allocations: 37.62 kB / 473.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1085, allocations: 0 / 473.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.1085, allocations: 0 / 473.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.345e-06/0.1085, allocations: 8.094 kB / 473.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.1085, allocations: 3.984 kB / 473.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.734e-05/0.1085, allocations: 4 kB / 473.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.1086, allocations: 0 / 473.1 MB, free: 10.23 MB / 350.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.742e-05/0.1086, allocations: 135.5 kB / 473.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.029e-05/0.1087, allocations: 7.844 kB / 473.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.026e-05/0.1087, allocations: 7.078 kB / 473.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.1087, allocations: 3.984 kB / 473.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1087, allocations: 0 / 473.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.1087, allocations: 4 kB / 473.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.859e-05/0.1088, allocations: 149.7 kB / 473.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1088, allocations: 0 / 473.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1088, allocations: 0 / 473.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1088, allocations: 3.938 kB / 473.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.1088, allocations: 0 / 473.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.1088, allocations: 0 / 473.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.1088, allocations: 0 / 473.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.723e-05/0.1089, allocations: 102.7 kB / 473.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.778e-05/0.109, allocations: 81.05 kB / 473.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.109, allocations: 7.984 kB / 473.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.005e-06/0.109, allocations: 0 / 473.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.241e-05/0.109, allocations: 0 / 473.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.109, allocations: 0 / 473.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.226e-05/0.109, allocations: 75.28 kB / 473.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.109, allocations: 3.938 kB / 473.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000204/0.1093, allocations: 16 kB / 473.7 MB, free: 9.535 MB / 350.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.0004756/0.1097, allocations: 0.6784 MB / 474.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.569e-05/0.1098, allocations: 63.41 kB / 474.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1098, allocations: 4.094 kB / 474.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.721e-05/0.1099, allocations: 59.41 kB / 474.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001158/0.11, allocations: 288 / 474.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002688/0.1103, allocations: 110.6 kB / 474.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.1105, allocations: 0.669 MB / 475.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.382e-06/0.1106, allocations: 4 kB / 475.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.296e-05/0.1106, allocations: 7.438 kB / 475.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1106, allocations: 0 / 475.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01736/0.1279, allocations: 1.487 MB / 476.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.303/7.431, allocations: 7.906 kB / 476.8 MB, free: 6.391 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches