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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 116.8 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 189.2 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 225.6 MB / 249.8 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2445/0.2445, allocations: 44.91 MB / 349.6 MB, free: 1.734 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.2 kB / 491.8 MB, free: 29.94 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1161, allocations: 64.25 MB / 0.543 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00176/0.1179, allocations: 0.5 MB / 0.5435 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002125/0.12, allocations: 1.393 MB / 0.5448 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.707e-05/0.1201, allocations: 0 / 0.5448 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.232e-05/0.1201, allocations: 4 kB / 0.5448 GB, free: 2.227 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.641e-06/0.1201, allocations: 4 kB / 0.5448 GB, free: 2.223 MB / 398.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.0005789/0.1207, allocations: 107.3 kB / 0.5449 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.362e-05/0.1207, allocations: 3.938 kB / 0.5449 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.773e-05/0.1207, allocations: 0 / 0.5449 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.447e-05/0.1208, allocations: 7.984 kB / 0.545 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.753e-05/0.1208, allocations: 3.938 kB / 0.545 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.365e-06/0.1208, allocations: 0 / 0.545 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003049/0.1211, allocations: 63.92 kB / 0.545 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.1211, allocations: 8 kB / 0.545 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.562e-05/0.1211, allocations: 0 / 0.545 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.1212, allocations: 23.97 kB / 0.545 GB, free: 2.012 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1212, allocations: 0 / 0.545 GB, free: 2.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1212, allocations: 0 / 0.545 GB, free: 2.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1213, allocations: 0 / 0.545 GB, free: 2.012 MB / 398.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.0003977/0.1216, allocations: 341.5 kB / 0.5454 GB, free: 1.625 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.1217, allocations: 12.03 kB / 0.5454 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.386e-05/0.1217, allocations: 30.75 kB / 0.5454 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.606e-05/0.1217, allocations: 4.938 kB / 0.5454 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.1219, allocations: 164.4 kB / 0.5456 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-06/0.1219, allocations: 4.312 kB / 0.5456 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.1219, allocations: 4.375 kB / 0.5456 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.122, allocations: 33.81 kB / 0.5456 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.122, allocations: 0 / 0.5456 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-06/0.122, allocations: 0 / 0.5456 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.122, allocations: 4 kB / 0.5456 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.521e-05/0.122, allocations: 0 / 0.5456 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001555/0.1222, allocations: 141.7 kB / 0.5458 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.965e-05/0.1222, allocations: 30.55 kB / 0.5458 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.414e-05/0.1223, allocations: 4.859 kB / 0.5458 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.697e-06/0.1223, allocations: 3.938 kB / 0.5458 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.057e-05/0.1223, allocations: 64.19 kB / 0.5459 GB, free: 1.004 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.1223, allocations: 0 / 0.5459 GB, free: 1.004 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001784/0.1225, allocations: 59.47 kB / 0.5459 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.1226, allocations: 81.23 kB / 0.546 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.929e-05/0.1226, allocations: 97.86 kB / 0.5461 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.1226, allocations: 25.7 kB / 0.5461 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.444e-05/0.1227, allocations: 80.14 kB / 0.5462 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.1227, allocations: 0 / 0.5462 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.1227, allocations: 13.7 kB / 0.5462 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1229, allocations: 314.8 kB / 0.5465 GB, free: 288 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.418e-06/0.1229, allocations: 3.938 kB / 0.5465 GB, free: 284 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.133e-06/0.1229, allocations: 4 kB / 0.5465 GB, free: 280 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.862e-05/0.1229, allocations: 64.27 kB / 0.5466 GB, free: 200 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1229, allocations: 0 / 0.5466 GB, free: 200 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.363e-05/0.123, allocations: 67.33 kB / 0.5466 GB, free: 120 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/0.1231, allocations: 33.64 kB / 0.5467 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1231, allocations: 0 / 0.5467 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.1231, allocations: 0 / 0.5467 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.975e-06/0.1231, allocations: 4 kB / 0.5467 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.1231, allocations: 0 / 0.5467 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.591e-05/0.1231, allocations: 4.094 kB / 0.5467 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.1231, allocations: 3.984 kB / 0.5467 GB, free: 68 kB / 398.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.0001218/0.1232, allocations: 139.5 kB / 0.5468 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.1232, allocations: 7.891 kB / 0.5468 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.148e-05/0.1232, allocations: 7.109 kB / 0.5468 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.1232, allocations: 0 / 0.5468 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1232, allocations: 4 kB / 0.5468 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1233, allocations: 0 / 0.5468 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.1234, allocations: 153.7 kB / 0.547 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1234, allocations: 4 kB / 0.547 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1234, allocations: 0 / 0.547 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1234, allocations: 3.938 kB / 0.547 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.1234, allocations: 3.984 kB / 0.547 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1234, allocations: 0 / 0.547 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1234, allocations: 0 / 0.547 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.1235, allocations: 90.78 kB / 0.5471 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.647e-05/0.1236, allocations: 85.03 kB / 0.5471 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.1236, allocations: 8.031 kB / 0.5472 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.195e-06/0.1236, allocations: 0 / 0.5472 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.569e-05/0.1236, allocations: 0 / 0.5472 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.1236, allocations: 3.938 kB / 0.5472 GB, free: 15.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.429e-05/0.1236, allocations: 75.28 kB / 0.5472 GB, free: 15.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1236, allocations: 0 / 0.5472 GB, free: 15.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002045/0.1238, allocations: 15.94 kB / 0.5472 GB, free: 15.37 MB / 414.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.0006194/0.1245, allocations: 0.6564 MB / 0.5479 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001167/0.1246, allocations: 59.39 kB / 0.5479 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1246, allocations: 4 kB / 0.5479 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.71e-05/0.1246, allocations: 55.34 kB / 0.548 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001356/0.1247, allocations: 8.156 kB / 0.548 GB, free: 14.53 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000301/0.125, allocations: 110.7 kB / 0.5481 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.1254, allocations: 0.6727 MB / 0.5488 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.711e-06/0.1254, allocations: 0 / 0.5488 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.319e-05/0.1254, allocations: 7.438 kB / 0.5488 GB, free: 13.68 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.1254, allocations: 0 / 0.5488 GB, free: 13.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.1485, allocations: 1.336 MB / 0.5501 GB, free: 12.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.816/7.964, allocations: 10.28 kB / 0.5501 GB, free: 12.41 MB / 414.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.791364753153175]