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.001149/0.001149, allocations: 113.2 kB / 17.33 MB, free: 5.988 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.001167/0.001167, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.337/1.337, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.21/0.21, allocations: 44.17 MB / 336.2 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 67.81 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.118, allocations: 60.83 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001826/0.1198, allocations: 0.5396 MB / 469.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001851/0.1217, allocations: 1.387 MB / 470.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.766e-05/0.1218, allocations: 0 / 470.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.1218, allocations: 0 / 470.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.159e-06/0.1218, allocations: 4 kB / 470.7 MB, free: 12.7 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.0005468/0.1224, allocations: 94.78 kB / 470.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.41e-05/0.1224, allocations: 4 kB / 470.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.159e-05/0.1225, allocations: 4 kB / 470.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.349e-05/0.1225, allocations: 3.938 kB / 470.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.948e-05/0.1225, allocations: 0 / 470.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.045e-05/0.1225, allocations: 0 / 470.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001791/0.1227, allocations: 47.91 kB / 470.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.117e-05/0.1228, allocations: 3.984 kB / 470.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.241e-05/0.1228, allocations: 0 / 470.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.1229, allocations: 35.95 kB / 470.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1229, allocations: 0 / 470.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1229, allocations: 8 kB / 470.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1229, allocations: 0 / 470.9 MB, free: 12.5 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.000295/0.1232, allocations: 341.3 kB / 471.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.1233, allocations: 12.03 kB / 471.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.337e-05/0.1233, allocations: 30.75 kB / 471.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.503e-05/0.1234, allocations: 4.938 kB / 471.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.387e-05/0.1235, allocations: 172.3 kB / 471.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.1235, allocations: 384 / 471.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.794e-06/0.1235, allocations: 4.375 kB / 471.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.544e-05/0.1236, allocations: 37.83 kB / 471.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.1236, allocations: 0 / 471.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.683e-06/0.1236, allocations: 0 / 471.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.1236, allocations: 0 / 471.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.568e-05/0.1236, allocations: 4 kB / 471.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001173/0.1238, allocations: 145.7 kB / 471.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.459e-05/0.1238, allocations: 30.47 kB / 471.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.284e-05/0.1238, allocations: 4.859 kB / 471.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-06/0.1238, allocations: 4 kB / 471.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.415e-05/0.1239, allocations: 64.2 kB / 471.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.193e-06/0.1239, allocations: 0 / 471.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000155/0.1241, allocations: 63.45 kB / 471.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.1241, allocations: 81.11 kB / 471.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.321e-05/0.1241, allocations: 89.86 kB / 472 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.1242, allocations: 25.7 kB / 472 MB, free: 11.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.033e-05/0.1242, allocations: 88.2 kB / 472.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.1242, allocations: 0 / 472.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.1243, allocations: 17.72 kB / 472.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.137e-05/0.1244, allocations: 310.8 kB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.686e-06/0.1244, allocations: 0 / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.08e-06/0.1244, allocations: 0 / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.375e-05/0.1244, allocations: 64.25 kB / 472.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1244, allocations: 0 / 472.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.726e-05/0.1245, allocations: 67.47 kB / 472.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.1245, allocations: 33.64 kB / 472.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1246, allocations: 3.938 kB / 472.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.849e-06/0.1246, allocations: 0 / 472.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.316e-06/0.1246, allocations: 4 kB / 472.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.1246, allocations: 3.938 kB / 472.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.55e-05/0.1246, allocations: 0 / 472.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.1246, allocations: 3.984 kB / 472.6 MB, free: 10.55 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.12e-05/0.1247, allocations: 135.5 kB / 472.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.1247, allocations: 11.88 kB / 472.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.083e-05/0.1247, allocations: 7.078 kB / 472.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-06/0.1247, allocations: 0 / 472.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1247, allocations: 0 / 472.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1248, allocations: 3.984 kB / 472.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.568e-05/0.1248, allocations: 149.7 kB / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1249, allocations: 0 / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.1249, allocations: 0 / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.1249, allocations: 3.938 kB / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.1249, allocations: 0 / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1249, allocations: 7.938 kB / 472.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1249, allocations: 4 kB / 472.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.403e-05/0.125, allocations: 94.83 kB / 473 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.12e-05/0.125, allocations: 81.05 kB / 473.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.125, allocations: 4 kB / 473.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.707e-06/0.1251, allocations: 3.938 kB / 473.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.949e-06/0.1251, allocations: 0 / 473.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.1251, allocations: 32 / 473.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.63e-05/0.1251, allocations: 79.28 kB / 473.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1251, allocations: 0 / 473.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002073/0.1253, allocations: 12 kB / 473.2 MB, free: 9.852 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.0005336/0.1259, allocations: 0.6629 MB / 473.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.06e-05/0.126, allocations: 71.27 kB / 473.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.126, allocations: 0 / 473.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.807e-05/0.126, allocations: 51.41 kB / 474 MB, free: 9.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.1262, allocations: 8.562 kB / 474 MB, free: 9.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000296/0.1265, allocations: 114.6 kB / 474.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.1267, allocations: 0.6691 MB / 474.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.992e-06/0.1267, allocations: 4 kB / 474.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.473e-05/0.1267, allocations: 11.44 kB / 474.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1267, allocations: 0 / 474.8 MB, free: 8.148 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01167/0.1384, allocations: 1.402 MB / 476.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/0.1386, allocations: 239.9 kB / 476.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/1.915, allocations: 0 / 476.4 MB, free: 6.578 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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