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.001111/0.001111, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 206.4 kB / 18.58 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2089/0.2089, allocations: 46.09 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 72.5 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1073, allocations: 62.45 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001743/0.1091, allocations: 487.5 kB / 480.6 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1112, allocations: 1.648 MB / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.858e-05/0.1112, allocations: 0 / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.34e-05/0.1113, allocations: 0 / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.548e-06/0.1113, allocations: 0 / 482.2 MB, free: 3.059 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.0006323/0.1119, allocations: 163.4 kB / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.887e-05/0.112, allocations: 0 / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.761e-05/0.112, allocations: 3.984 kB / 482.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.525e-05/0.112, allocations: 7.984 kB / 482.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.721e-05/0.1121, allocations: 0 / 482.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.422e-06/0.1121, allocations: 0 / 482.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002823/0.1124, allocations: 119.9 kB / 482.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.232e-06/0.1124, allocations: 3.938 kB / 482.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.711e-05/0.1124, allocations: 4 kB / 482.5 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.1126, allocations: 95.83 kB / 482.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1126, allocations: 4 kB / 482.6 MB, free: 2.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1126, allocations: 0 / 482.6 MB, free: 2.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1126, allocations: 0 / 482.6 MB, free: 2.664 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.0003006/0.1129, allocations: 369.4 kB / 483 MB, free: 2.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.113, allocations: 8.031 kB / 483 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.004e-05/0.113, allocations: 30.75 kB / 483 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.176e-05/0.113, allocations: 4.938 kB / 483 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.19e-05/0.1131, allocations: 160.4 kB / 483.2 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-06/0.1131, allocations: 4.375 kB / 483.2 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.745e-06/0.1131, allocations: 4.359 kB / 483.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.245e-05/0.1132, allocations: 37.81 kB / 483.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-06/0.1132, allocations: 0 / 483.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.1132, allocations: 0 / 483.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.196e-06/0.1132, allocations: 0 / 483.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.721e-05/0.1133, allocations: 3.938 kB / 483.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001193/0.1134, allocations: 153.7 kB / 483.4 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.349e-05/0.1134, allocations: 18.58 kB / 483.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.333e-05/0.1135, allocations: 8.844 kB / 483.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.34e-06/0.1135, allocations: 8.031 kB / 483.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.1135, allocations: 60.2 kB / 483.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1135, allocations: 0 / 483.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001467/0.1137, allocations: 67.34 kB / 483.6 MB, free: 1.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.1137, allocations: 77.11 kB / 483.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.3e-05/0.1138, allocations: 97.97 kB / 483.7 MB, free: 1.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.1138, allocations: 25.7 kB / 483.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.254e-05/0.1138, allocations: 80.14 kB / 483.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.1138, allocations: 0 / 483.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.1139, allocations: 17.66 kB / 483.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.561e-05/0.114, allocations: 314.8 kB / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.256e-06/0.114, allocations: 0 / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.572e-06/0.114, allocations: 4 kB / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.008e-05/0.114, allocations: 64.33 kB / 484.2 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.114, allocations: 0 / 484.2 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.487e-05/0.1141, allocations: 63.33 kB / 484.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/0.1142, allocations: 37.64 kB / 484.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.1142, allocations: 0 / 484.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.1142, allocations: 0 / 484.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1142, allocations: 0 / 484.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.858e-06/0.1142, allocations: 0 / 484.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.395e-05/0.1142, allocations: 0 / 484.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.1142, allocations: 12.03 kB / 484.3 MB, free: 0.6875 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.761e-05/0.1143, allocations: 135.5 kB / 484.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-06/0.1143, allocations: 3.938 kB / 484.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.843e-06/0.1143, allocations: 3.125 kB / 484.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.1143, allocations: 4 kB / 484.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1144, allocations: 4 kB / 484.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.1144, allocations: 0 / 484.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.669e-05/0.1145, allocations: 149.6 kB / 484.6 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1145, allocations: 0 / 484.6 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.1145, allocations: 4 kB / 484.6 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1145, allocations: 3.938 kB / 484.6 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.1145, allocations: 4 kB / 484.6 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1145, allocations: 0 / 484.6 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1145, allocations: 0 / 484.6 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.664e-05/0.1146, allocations: 94.77 kB / 484.7 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.561e-05/0.1146, allocations: 81.05 kB / 484.8 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.094e-05/0.1147, allocations: 0 / 484.8 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.688e-06/0.1147, allocations: 4.031 kB / 484.8 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.846e-06/0.1147, allocations: 0 / 484.8 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.1147, allocations: 8 kB / 484.8 MB, free: 96 kB / 350.1 MB Notification: Performance of sorting global known variables: time 2.224e-05/0.1147, allocations: 79.22 kB / 484.9 MB, free: 16 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1147, allocations: 0 / 484.9 MB, free: 16 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002687/0.115, allocations: 43.92 kB / 484.9 MB, free: 15.97 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.0005407/0.1156, allocations: 0.7154 MB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.288e-05/0.1157, allocations: 55.41 kB / 485.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1157, allocations: 4 kB / 485.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.714e-05/0.1157, allocations: 51.41 kB / 485.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000117/0.1158, allocations: 6.531 kB / 485.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002775/0.1161, allocations: 138.6 kB / 485.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/0.1163, allocations: 0.6729 MB / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.22e-06/0.1163, allocations: 0 / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.002e-05/0.1164, allocations: 7.438 kB / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1164, allocations: 0 / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01647/0.1328, allocations: 2.108 MB / 488.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.191/7.324, allocations: 7.984 kB / 488.7 MB, free: 12.14 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