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.001636/0.001636, allocations: 112.8 kB / 17.78 MB, free: 5.277 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.00177/0.00177, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.385/1.385, allocations: 222.9 MB / 242.4 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.2509/0.2509, allocations: 44.2 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 63.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.338, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001455/0.3394, allocations: 494.8 kB / 0.5189 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.341, allocations: 1.39 MB / 0.5202 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.937e-05/0.3411, allocations: 4 kB / 0.5202 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.158e-05/0.3411, allocations: 1.094 kB / 0.5203 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.71e-06/0.3411, allocations: 3.938 kB / 0.5203 GB, free: 1.98 MB / 382.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.0004994/0.3416, allocations: 96.03 kB / 0.5203 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.53e-05/0.3416, allocations: 11.06 kB / 0.5204 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.556e-05/0.3417, allocations: 1.766 kB / 0.5204 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.561e-05/0.3417, allocations: 0 / 0.5204 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.264e-05/0.3417, allocations: 5.156 kB / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.514e-06/0.3417, allocations: 0 / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002755/0.342, allocations: 70.7 kB / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.283e-06/0.342, allocations: 0 / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.778e-05/0.342, allocations: 1.094 kB / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.043e-05/0.3421, allocations: 28.53 kB / 0.5205 GB, free: 1.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3421, allocations: 1.125 kB / 0.5205 GB, free: 1.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3421, allocations: 0 / 0.5205 GB, free: 1.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.381e-06/0.3421, allocations: 0 / 0.5205 GB, free: 1.879 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.0002566/0.3424, allocations: 343.5 kB / 0.5208 GB, free: 1.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.3424, allocations: 10.09 kB / 0.5208 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.884e-05/0.3424, allocations: 35.91 kB / 0.5208 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.181e-05/0.3425, allocations: 1.688 kB / 0.5208 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.437e-05/0.3425, allocations: 162.1 kB / 0.521 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.785e-06/0.3425, allocations: 384 / 0.521 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.3425, allocations: 1.531 kB / 0.521 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.883e-05/0.3426, allocations: 37.45 kB / 0.521 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.3426, allocations: 0 / 0.521 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-06/0.3426, allocations: 1.938 kB / 0.521 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.3426, allocations: 0 / 0.521 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.781e-05/0.3427, allocations: 5.156 kB / 0.521 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.545e-05/0.3427, allocations: 149.4 kB / 0.5212 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.204e-05/0.3428, allocations: 16.22 kB / 0.5212 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.291e-05/0.3428, allocations: 10.98 kB / 0.5212 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.931e-06/0.3428, allocations: 1.031 kB / 0.5212 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.3428, allocations: 66.3 kB / 0.5213 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3428, allocations: 0 / 0.5213 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001599/0.343, allocations: 72.7 kB / 0.5213 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/0.343, allocations: 78.75 kB / 0.5214 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.881e-05/0.343, allocations: 90.52 kB / 0.5215 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.262e-06/0.343, allocations: 25.7 kB / 0.5215 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.054e-05/0.3431, allocations: 81.2 kB / 0.5216 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.3431, allocations: 2.672 kB / 0.5216 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.359e-05/0.3431, allocations: 12.92 kB / 0.5216 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.165e-05/0.3431, allocations: 312.7 kB / 0.5219 GB, free: 212 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.378e-06/0.3431, allocations: 5.25 kB / 0.5219 GB, free: 208 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.011e-06/0.3431, allocations: 8.703 kB / 0.5219 GB, free: 200 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.957e-05/0.3432, allocations: 64.36 kB / 0.522 GB, free: 124 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3432, allocations: 0.7031 kB / 0.522 GB, free: 124 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.311e-05/0.3432, allocations: 60.45 kB / 0.522 GB, free: 60 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.3433, allocations: 35.88 kB / 0.5221 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3433, allocations: 0.5156 kB / 0.5221 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.3433, allocations: 1 kB / 0.5221 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.3433, allocations: 4.656 kB / 0.5221 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.3433, allocations: 0 / 0.5221 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.51e-05/0.3433, allocations: 1 kB / 0.5221 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/0.3433, allocations: 2 kB / 0.5221 GB, free: 20 kB / 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.0001118/0.3434, allocations: 142.4 kB / 0.5222 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/0.3434, allocations: 9.719 kB / 0.5222 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.317e-05/0.3434, allocations: 8.109 kB / 0.5222 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.3434, allocations: 0 / 0.5222 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3434, allocations: 1.094 kB / 0.5222 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.3434, allocations: 4 kB / 0.5222 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.3436, allocations: 144.9 kB / 0.5224 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3436, allocations: 1.156 kB / 0.5224 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.895e-06/0.3436, allocations: 4.734 kB / 0.5224 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.3436, allocations: 4.969 kB / 0.5224 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-06/0.3436, allocations: 0 / 0.5224 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.3436, allocations: 1.188 kB / 0.5224 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3436, allocations: 4.5 kB / 0.5224 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000104/0.3437, allocations: 93.16 kB / 0.5225 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.205e-05/0.3437, allocations: 81.75 kB / 0.5226 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.3437, allocations: 1.969 kB / 0.5226 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.888e-06/0.3438, allocations: 1.312 kB / 0.5226 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.505e-05/0.3438, allocations: 0 / 0.5226 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.3438, allocations: 1.094 kB / 0.5226 GB, free: 15.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.426e-05/0.3438, allocations: 76.17 kB / 0.5226 GB, free: 15.38 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3438, allocations: 1.031 kB / 0.5226 GB, free: 15.38 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002347/0.344, allocations: 9.938 kB / 0.5227 GB, free: 15.38 MB / 398.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.0005921/0.3446, allocations: 0.6697 MB / 0.5233 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001134/0.3448, allocations: 62.78 kB / 0.5234 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3448, allocations: 4.094 kB / 0.5234 GB, free: 14.65 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.967e-05/0.3448, allocations: 55.09 kB / 0.5234 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001191/0.3449, allocations: 5.297 kB / 0.5234 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002939/0.3452, allocations: 113.1 kB / 0.5235 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.3455, allocations: 0.6756 MB / 0.5242 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.64e-06/0.3455, allocations: 0 / 0.5242 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.454e-05/0.3455, allocations: 8.844 kB / 0.5242 GB, free: 13.75 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3455, allocations: 0 / 0.5242 GB, free: 13.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02325/0.3688, allocations: 1.326 MB / 0.5255 GB, free: 13.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.698/8.067, allocations: 8.906 kB / 0.5255 GB, free: 13.31 MB / 398.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