Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001605/0.001605, allocations: 114.6 kB / 17.33 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002048/0.002048, allocations: 209.8 kB / 18.27 MB, free: 5.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.217/0.217, allocations: 46.1 MB / 343.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 72.59 kB / 417.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1313, allocations: 62.44 MB / 479.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.002016/0.1333, allocations: 0.5449 MB / 480.1 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002285/0.1356, allocations: 1.629 MB / 481.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.044e-05/0.1357, allocations: 0 / 481.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.583e-05/0.1357, allocations: 4 kB / 481.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.1358, allocations: 0 / 481.8 MB, free: 3.348 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0008021/0.1366, allocations: 146.9 kB / 481.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.153e-05/0.1366, allocations: 3.984 kB / 481.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.573e-05/0.1367, allocations: 0 / 481.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.547e-05/0.1367, allocations: 4 kB / 481.9 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.813e-05/0.1367, allocations: 7.938 kB / 481.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.516e-06/0.1367, allocations: 0 / 481.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003312/0.1371, allocations: 119.9 kB / 482 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.195e-06/0.1371, allocations: 0 / 482 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.852e-05/0.1371, allocations: 4 kB / 482 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002239/0.1373, allocations: 87.89 kB / 482.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1374, allocations: 0 / 482.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1374, allocations: 0 / 482.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1374, allocations: 4 kB / 482.1 MB, free: 2.98 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.0003607/0.1377, allocations: 377.4 kB / 482.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.1378, allocations: 11.97 kB / 482.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.095e-05/0.1378, allocations: 30.75 kB / 482.5 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.776e-05/0.1379, allocations: 0.9375 kB / 482.5 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.636e-05/0.138, allocations: 168.4 kB / 482.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.138, allocations: 384 / 482.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-06/0.138, allocations: 384 / 482.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.403e-05/0.1381, allocations: 29.83 kB / 482.7 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.1381, allocations: 4 kB / 482.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.1381, allocations: 4 kB / 482.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.1381, allocations: 0 / 482.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.01e-05/0.1382, allocations: 3.938 kB / 482.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001249/0.1383, allocations: 149.7 kB / 482.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.196e-05/0.1383, allocations: 18.61 kB / 482.9 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.485e-05/0.1384, allocations: 4.859 kB / 482.9 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.243e-06/0.1384, allocations: 0 / 482.9 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.756e-05/0.1384, allocations: 68.27 kB / 483 MB, free: 1.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.1384, allocations: 0 / 483 MB, free: 1.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001703/0.1386, allocations: 71.33 kB / 483.1 MB, free: 1.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.1387, allocations: 77.11 kB / 483.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.615e-05/0.1387, allocations: 93.8 kB / 483.2 MB, free: 1.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.1387, allocations: 25.7 kB / 483.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.872e-05/0.1388, allocations: 80.14 kB / 483.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.1388, allocations: 0 / 483.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-05/0.1388, allocations: 17.84 kB / 483.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1389, allocations: 314.8 kB / 483.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.708e-06/0.1389, allocations: 0 / 483.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.795e-06/0.139, allocations: 4 kB / 483.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.048e-05/0.139, allocations: 60.25 kB / 483.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.139, allocations: 0 / 483.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.315e-05/0.1391, allocations: 63.34 kB / 483.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.54e-05/0.1391, allocations: 37.64 kB / 483.8 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1392, allocations: 4.094 kB / 483.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.1392, allocations: 0 / 483.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.425e-06/0.1392, allocations: 3.984 kB / 483.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.1392, allocations: 0 / 483.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.699e-05/0.1392, allocations: 4 kB / 483.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.1392, allocations: 0 / 483.8 MB, free: 1.008 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 8.263e-05/0.1393, allocations: 139.5 kB / 484 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.013e-05/0.1393, allocations: 3.938 kB / 484 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.905e-06/0.1393, allocations: 3.125 kB / 484 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1393, allocations: 4 kB / 484 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1394, allocations: 3.984 kB / 484 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.1394, allocations: 7.938 kB / 484 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.786e-05/0.1395, allocations: 149.6 kB / 484.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1395, allocations: 0 / 484.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.762e-06/0.1395, allocations: 4 kB / 484.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.1395, allocations: 3.938 kB / 484.1 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.1395, allocations: 0 / 484.1 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1395, allocations: 4 kB / 484.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1395, allocations: 0 / 484.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.94e-05/0.1396, allocations: 94.77 kB / 484.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.566e-05/0.1396, allocations: 85.05 kB / 484.3 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.1397, allocations: 0 / 484.3 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.057e-06/0.1397, allocations: 0 / 484.3 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.096e-05/0.1397, allocations: 4 kB / 484.3 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.1397, allocations: 3.938 kB / 484.3 MB, free: 412 kB / 350.1 MB Notification: Performance of sorting global known variables: time 2.801e-05/0.1397, allocations: 79.28 kB / 484.4 MB, free: 332 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1398, allocations: 4.031 kB / 484.4 MB, free: 328 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000283/0.14, allocations: 35.98 kB / 484.4 MB, free: 292 kB / 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.0006474/0.1407, allocations: 0.7006 MB / 485.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.967e-05/0.1408, allocations: 59.44 kB / 485.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1408, allocations: 0 / 485.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.69e-05/0.1409, allocations: 59.39 kB / 485.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.141, allocations: 7.938 kB / 485.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003129/0.1413, allocations: 142.4 kB / 485.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.1415, allocations: 0.669 MB / 486.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.831e-06/0.1416, allocations: 4 kB / 486.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.267e-05/0.1416, allocations: 7.562 kB / 486.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1416, allocations: 4 kB / 486.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01263/0.1542, allocations: 2.032 MB / 488.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/0.1545, allocations: 233.8 kB / 488.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.896/2.051, allocations: 0 / 488.4 MB, free: 12.33 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches