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.0007666/0.0007665, allocations: 97.98 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009384/0.0009387, allocations: 204.1 kB / 18.28 MB, free: 5.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2061/0.2061, allocations: 46.19 MB / 345.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002594/0.0002594, allocations: 8 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1242, allocations: 63.56 MB / 483.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0005953/0.1248, allocations: 226.9 kB / 483.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002402/0.1273, allocations: 1.617 MB / 485 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.246e-05/0.1273, allocations: 0 / 485 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.289e-05/0.1273, allocations: 0 / 485 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.541e-06/0.1273, allocations: 0 / 485 MB, free: 2.223 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.0007426/0.1281, allocations: 139.3 kB / 485.1 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.71e-05/0.1281, allocations: 0 / 485.1 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.85e-05/0.1282, allocations: 4 kB / 485.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.785e-05/0.1282, allocations: 0 / 485.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.547e-05/0.1283, allocations: 0 / 485.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.1283, allocations: 0 / 485.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003543/0.1286, allocations: 115.9 kB / 485.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.946e-06/0.1286, allocations: 3.938 kB / 485.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.167e-05/0.1287, allocations: 33.7 kB / 485.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002167/0.1289, allocations: 87.89 kB / 485.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1289, allocations: 4 kB / 485.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1289, allocations: 0 / 485.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.1289, allocations: 0 / 485.4 MB, free: 1.84 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.0003547/0.1293, allocations: 377.4 kB / 485.8 MB, free: 1.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.1294, allocations: 12.88 kB / 485.8 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.2e-05/0.1294, allocations: 30.75 kB / 485.8 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.521e-05/0.1294, allocations: 0.9375 kB / 485.8 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.431e-05/0.1295, allocations: 164.4 kB / 486 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.1296, allocations: 384 / 486 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.807e-06/0.1296, allocations: 4.375 kB / 486 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001075/0.1297, allocations: 37.81 kB / 486 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1297, allocations: 0 / 486 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.1297, allocations: 0 / 486 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.1297, allocations: 0 / 486 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.354e-05/0.1298, allocations: 7.938 kB / 486 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001383/0.1299, allocations: 145.7 kB / 486.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.546e-05/0.1299, allocations: 18.58 kB / 486.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.783e-05/0.13, allocations: 12.95 kB / 486.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.13, allocations: 3.984 kB / 486.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.13, allocations: 60.2 kB / 486.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.13, allocations: 0 / 486.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001741/0.1302, allocations: 67.33 kB / 486.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.1303, allocations: 81.11 kB / 486.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.296e-05/0.1303, allocations: 89.86 kB / 486.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.1303, allocations: 29.83 kB / 486.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.838e-05/0.1304, allocations: 84.14 kB / 486.6 MB, free: 416 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.1304, allocations: 0 / 486.6 MB, free: 416 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.173e-05/0.1304, allocations: 13.66 kB / 486.6 MB, free: 396 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.973e-05/0.1305, allocations: 310.8 kB / 486.9 MB, free: 76 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.506e-06/0.1306, allocations: 0 / 486.9 MB, free: 76 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.534e-06/0.1306, allocations: 4 kB / 486.9 MB, free: 72 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.95e-05/0.1306, allocations: 60.27 kB / 487 MB, free: 16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1306, allocations: 4.062 kB / 487 MB, free: 15.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.225e-05/0.1307, allocations: 67.33 kB / 487 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.968e-05/0.1308, allocations: 37.64 kB / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1308, allocations: 0 / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.1308, allocations: 0 / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1308, allocations: 0 / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.1308, allocations: 0 / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.528e-05/0.1308, allocations: 0 / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.1308, allocations: 0 / 487.1 MB, free: 15.87 MB / 366.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 9.241e-05/0.1309, allocations: 143.6 kB / 487.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.997e-06/0.131, allocations: 3.938 kB / 487.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.326e-06/0.131, allocations: 3.125 kB / 487.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.131, allocations: 4 kB / 487.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.131, allocations: 7.938 kB / 487.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.131, allocations: 0 / 487.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.904e-05/0.1311, allocations: 153.6 kB / 487.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1311, allocations: 0 / 487.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-07/0.1311, allocations: 0 / 487.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1311, allocations: 3.938 kB / 487.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.1311, allocations: 8 kB / 487.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1311, allocations: 0 / 487.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1311, allocations: 0 / 487.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.736e-05/0.1312, allocations: 90.77 kB / 487.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.649e-05/0.1313, allocations: 85.05 kB / 487.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.1313, allocations: 0 / 487.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.447e-06/0.1313, allocations: 0 / 487.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.281e-05/0.1313, allocations: 0 / 487.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.1313, allocations: 4.031 kB / 487.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.466e-05/0.1314, allocations: 79.28 kB / 487.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1314, allocations: 0 / 487.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002522/0.1316, allocations: 39.92 kB / 487.7 MB, free: 15.15 MB / 366.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.0005714/0.1322, allocations: 0.7021 MB / 488.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.511e-05/0.1323, allocations: 59.41 kB / 488.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1323, allocations: 0 / 488.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.859e-05/0.1324, allocations: 55.41 kB / 488.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.1325, allocations: 4 kB / 488.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003177/0.1328, allocations: 136.2 kB / 488.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.1331, allocations: 0.6772 MB / 489.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.923e-06/0.1331, allocations: 3.984 kB / 489.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.158e-05/0.1331, allocations: 11.44 kB / 489.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1331, allocations: 0 / 489.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01141/0.1445, allocations: 1.914 MB / 491.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.1447, allocations: 228.8 kB / 491.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/1.859, allocations: 3.375 kB / 491.5 MB, free: 11.32 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