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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008102/0.0008102, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8753/0.8753, allocations: 177.1 MB / 204.3 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.2207/0.2207, allocations: 32.78 MB / 293.5 MB, free: 1.219 MB / 266.7 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.573e-06/1.573e-06, allocations: 0 / 439.6 MB, free: 4.254 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.033e-05/2.19e-05, allocations: 2.281 kB / 439.6 MB, free: 4.25 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001018/0.00104, allocations: 489.1 kB / 440 MB, free: 3.773 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.002469, allocations: 1.591 MB / 441.6 MB, free: 2.164 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.041e-05/0.002489, allocations: 4 kB / 441.6 MB, free: 2.16 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.336e-05/0.002503, allocations: 0 / 441.6 MB, free: 2.16 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.951e-06/0.002509, allocations: 0 / 441.6 MB, free: 2.16 MB / 410.7 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.0004562/0.002965, allocations: 168.4 kB / 441.8 MB, free: 1.996 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.746e-05/0.003012, allocations: 0 / 441.8 MB, free: 1.996 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.423e-05/0.003047, allocations: 4 kB / 441.8 MB, free: 1.992 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.408e-05/0.003071, allocations: 0 / 441.8 MB, free: 1.992 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.756e-05/0.003098, allocations: 0 / 441.8 MB, free: 1.992 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.605e-06/0.003106, allocations: 4 kB / 441.8 MB, free: 1.988 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002675/0.003373, allocations: 123.8 kB / 441.9 MB, free: 1.867 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.404e-06/0.003381, allocations: 0 / 441.9 MB, free: 1.867 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.482e-05/0.003396, allocations: 0 / 441.9 MB, free: 1.867 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.968e-05/0.003495, allocations: 51.81 kB / 442 MB, free: 1.816 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.003497, allocations: 0 / 442 MB, free: 1.816 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.003499, allocations: 0 / 442 MB, free: 1.816 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.003502, allocations: 0 / 442 MB, free: 1.816 MB / 410.7 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.0002283/0.003731, allocations: 276.1 kB / 442.2 MB, free: 1.512 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.003767, allocations: 15.97 kB / 442.3 MB, free: 1.496 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.016e-05/0.003787, allocations: 30.75 kB / 442.3 MB, free: 1.457 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.111e-05/0.003808, allocations: 0.9375 kB / 442.3 MB, free: 1.457 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.942e-05/0.003858, allocations: 109.8 kB / 442.4 MB, free: 1.324 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.536e-06/0.003866, allocations: 384 / 442.4 MB, free: 1.324 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.102e-06/0.003872, allocations: 384 / 442.4 MB, free: 1.324 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.285e-05/0.003945, allocations: 59.95 kB / 442.5 MB, free: 1.254 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.003951, allocations: 192 / 442.5 MB, free: 1.254 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.003958, allocations: 4.125 kB / 442.5 MB, free: 1.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.003961, allocations: 0 / 442.5 MB, free: 1.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.098e-05/0.003982, allocations: 33.64 kB / 442.5 MB, free: 1.211 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.7e-05/0.004069, allocations: 124.8 kB / 442.6 MB, free: 1.047 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.806e-05/0.004107, allocations: 44.31 kB / 442.7 MB, free: 0.9883 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.606e-05/0.004124, allocations: 30.56 kB / 442.7 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.969e-06/0.004128, allocations: 0 / 442.7 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.004157, allocations: 56.27 kB / 442.7 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.51e-07/0.004158, allocations: 4.062 kB / 442.8 MB, free: 0.875 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001427/0.004301, allocations: 126.7 kB / 442.9 MB, free: 0.7266 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/0.004335, allocations: 77.11 kB / 443 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.556e-05/0.004361, allocations: 93.81 kB / 443 MB, free: 0.5312 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.104e-06/0.004368, allocations: 29.83 kB / 443.1 MB, free: 0.4961 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.653e-05/0.004384, allocations: 80.14 kB / 443.1 MB, free: 424 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.24e-05/0.004397, allocations: 0 / 443.1 MB, free: 424 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.004419, allocations: 17.72 kB / 443.2 MB, free: 400 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.708e-05/0.004486, allocations: 314.8 kB / 443.5 MB, free: 76 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.9e-05/0.004505, allocations: 29.7 kB / 443.5 MB, free: 40 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.041e-05/0.004515, allocations: 29.64 kB / 443.5 MB, free: 4 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1624/0.1669, allocations: 59.27 kB / 443.6 MB, free: 46.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1669, allocations: 0 / 443.6 MB, free: 46.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.444e-05/0.167, allocations: 93.88 kB / 443.7 MB, free: 46.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.167, allocations: 32.14 kB / 443.7 MB, free: 46.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.167, allocations: 0 / 443.7 MB, free: 46.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.1671, allocations: 3.844 kB / 443.7 MB, free: 46.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.693e-06/0.1671, allocations: 6.625 kB / 443.7 MB, free: 46.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1671, allocations: 2.594 kB / 443.7 MB, free: 46.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.697e-05/0.1671, allocations: 0 / 443.7 MB, free: 46.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-06/0.1671, allocations: 0 / 443.7 MB, free: 46.27 MB / 410.7 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 4.584e-05/0.1671, allocations: 142.7 kB / 443.9 MB, free: 46.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.332e-06/0.1671, allocations: 0 / 443.9 MB, free: 46.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.176e-05/0.1672, allocations: 6.156 kB / 443.9 MB, free: 46.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1672, allocations: 0 / 443.9 MB, free: 46.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1672, allocations: 0.7188 kB / 443.9 MB, free: 46.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1672, allocations: 3.469 kB / 443.9 MB, free: 46.12 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.714e-05/0.1672, allocations: 126.3 kB / 444 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.61e-07/0.1672, allocations: 0 / 444 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1672, allocations: 0 / 444 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.1672, allocations: 0 / 444 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.1672, allocations: 0 / 444 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.1672, allocations: 0.5625 kB / 444 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1672, allocations: 6.219 kB / 444 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.391e-05/0.1673, allocations: 122.8 kB / 444.1 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.789e-06/0.1673, allocations: 0 / 444.1 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.988e-06/0.1673, allocations: 0 / 444.1 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.244e-06/0.1673, allocations: 3.188 kB / 444.1 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.118e-05/0.1673, allocations: 3.141 kB / 444.1 MB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/0.1673, allocations: 2.812 kB / 444.1 MB, free: 45.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.034e-05/0.1673, allocations: 75.28 kB / 444.2 MB, free: 45.76 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1673, allocations: 2.75 kB / 444.2 MB, free: 45.76 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001661/0.1675, allocations: 18.58 kB / 444.2 MB, free: 45.76 MB / 410.7 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.0003538/0.1678, allocations: 0.7021 MB / 444.9 MB, free: 45.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.819e-05/0.1679, allocations: 118.2 kB / 445 MB, free: 44.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1679, allocations: 0 / 445 MB, free: 44.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.292e-05/0.1679, allocations: 79.77 kB / 445.1 MB, free: 44.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.903e-05/0.168, allocations: 5.922 kB / 445.1 MB, free: 44.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002219/0.1683, allocations: 141.9 kB / 445.3 MB, free: 44.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.487e-05/0.1683, allocations: 57.25 kB / 445.3 MB, free: 44.66 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.969e-06/0.1683, allocations: 5.25 kB / 445.3 MB, free: 44.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.758e-05/0.1683, allocations: 11.03 kB / 445.3 MB, free: 44.66 MB / 410.7 MB Notification: Performance of SimCode: time 9.52e-07/0.1683, allocations: 0 / 445.3 MB, free: 44.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01469/0.183, allocations: 2.157 MB / 447.5 MB, free: 43.76 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.796/6.979, allocations: 11.48 kB / 447.5 MB, free: 43.75 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.816813115030527]