Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001775/0.001775, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001702/0.001702, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.493/1.493, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2288/0.2288, allocations: 46.92 MB / 357.1 MB, free: 10.35 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 75.88 kB / 0.4909 GB, free: 8.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1301, allocations: 65.98 MB / 0.5553 GB, free: 5.914 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001664/0.1317, allocations: 0.5009 MB / 0.5558 GB, free: 5.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002379/0.1341, allocations: 1.648 MB / 0.5574 GB, free: 3.746 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.308e-05/0.1341, allocations: 0 / 0.5574 GB, free: 3.746 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.227e-05/0.1342, allocations: 0 / 0.5574 GB, free: 3.746 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.669e-06/0.1342, allocations: 0 / 0.5574 GB, free: 3.746 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0006798/0.1348, allocations: 175.3 kB / 0.5576 GB, free: 3.574 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.144e-05/0.1349, allocations: 0 / 0.5576 GB, free: 3.574 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.103e-05/0.1349, allocations: 0 / 0.5576 GB, free: 3.574 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.76e-05/0.1349, allocations: 0 / 0.5576 GB, free: 3.574 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.533e-05/0.135, allocations: 7.984 kB / 0.5576 GB, free: 3.566 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.464e-06/0.135, allocations: 0 / 0.5576 GB, free: 3.566 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003542/0.1353, allocations: 115.9 kB / 0.5577 GB, free: 3.453 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.943e-06/0.1353, allocations: 0 / 0.5577 GB, free: 3.453 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.068e-05/0.1354, allocations: 15.92 kB / 0.5577 GB, free: 3.438 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.1355, allocations: 35.95 kB / 0.5578 GB, free: 3.402 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.748e-06/0.1355, allocations: 0 / 0.5578 GB, free: 3.402 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1355, allocations: 0 / 0.5578 GB, free: 3.402 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1355, allocations: 0 / 0.5578 GB, free: 3.402 MB / 414.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.0003656/0.1358, allocations: 353.1 kB / 0.5581 GB, free: 3.004 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.1359, allocations: 8.031 kB / 0.5581 GB, free: 2.996 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.418e-05/0.1359, allocations: 34.75 kB / 0.5582 GB, free: 2.953 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.996e-05/0.1359, allocations: 0.9375 kB / 0.5582 GB, free: 2.953 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.136, allocations: 160.4 kB / 0.5583 GB, free: 2.758 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.1361, allocations: 8.375 kB / 0.5583 GB, free: 2.75 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.1361, allocations: 384 / 0.5583 GB, free: 2.75 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.192e-05/0.1362, allocations: 37.81 kB / 0.5584 GB, free: 2.707 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.1362, allocations: 0 / 0.5584 GB, free: 2.707 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.271e-06/0.1362, allocations: 0 / 0.5584 GB, free: 2.707 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1362, allocations: 0 / 0.5584 GB, free: 2.707 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.713e-05/0.1362, allocations: 3.938 kB / 0.5584 GB, free: 2.703 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000134/0.1363, allocations: 145.7 kB / 0.5585 GB, free: 2.512 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.429e-05/0.1364, allocations: 18.58 kB / 0.5585 GB, free: 2.484 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.93e-05/0.1364, allocations: 16.95 kB / 0.5585 GB, free: 2.465 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.354e-06/0.1364, allocations: 0 / 0.5585 GB, free: 2.465 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.265e-05/0.1364, allocations: 64.19 kB / 0.5586 GB, free: 2.387 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1364, allocations: 0 / 0.5586 GB, free: 2.387 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001616/0.1366, allocations: 63.34 kB / 0.5587 GB, free: 2.312 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.1367, allocations: 77.11 kB / 0.5587 GB, free: 2.219 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.78e-05/0.1367, allocations: 97.94 kB / 0.5588 GB, free: 2.113 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.1367, allocations: 25.7 kB / 0.5588 GB, free: 2.082 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.873e-05/0.1368, allocations: 84.14 kB / 0.5589 GB, free: 1.996 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.1368, allocations: 4 kB / 0.5589 GB, free: 1.992 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.1368, allocations: 13.7 kB / 0.5589 GB, free: 1.973 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.137, allocations: 310.8 kB / 0.5592 GB, free: 1.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.068e-05/0.137, allocations: 4 kB / 0.5592 GB, free: 1.656 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.666e-06/0.137, allocations: 4 kB / 0.5592 GB, free: 1.652 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.125e-05/0.137, allocations: 64.33 kB / 0.5593 GB, free: 1.574 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.137, allocations: 3.938 kB / 0.5593 GB, free: 1.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.937e-05/0.1371, allocations: 67.33 kB / 0.5594 GB, free: 1.492 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.406e-05/0.1371, allocations: 37.64 kB / 0.5594 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.1371, allocations: 0 / 0.5594 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.1372, allocations: 0 / 0.5594 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.1372, allocations: 0 / 0.5594 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.1372, allocations: 3.938 kB / 0.5594 GB, free: 1.445 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.333e-05/0.1372, allocations: 0 / 0.5594 GB, free: 1.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.1372, allocations: 8.031 kB / 0.5594 GB, free: 1.438 MB / 414.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.267e-05/0.1373, allocations: 133.7 kB / 0.5596 GB, free: 1.293 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.438e-06/0.1373, allocations: 3.938 kB / 0.5596 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.736e-06/0.1373, allocations: 11.11 kB / 0.5596 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1373, allocations: 0 / 0.5596 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1373, allocations: 0 / 0.5596 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.1373, allocations: 0 / 0.5596 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.1374, allocations: 145.7 kB / 0.5597 GB, free: 1.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.1374, allocations: 0 / 0.5597 GB, free: 1.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.1374, allocations: 4 kB / 0.5597 GB, free: 1.086 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.1374, allocations: 7.938 kB / 0.5597 GB, free: 1.078 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.1374, allocations: 3.984 kB / 0.5597 GB, free: 1.074 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.1374, allocations: 0 / 0.5597 GB, free: 1.074 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1374, allocations: 0 / 0.5597 GB, free: 1.074 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001039/0.1375, allocations: 90.78 kB / 0.5598 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.63e-05/0.1376, allocations: 89.02 kB / 0.5599 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.1376, allocations: 0 / 0.5599 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-06/0.1376, allocations: 4.031 kB / 0.5599 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.523e-05/0.1376, allocations: 4 kB / 0.5599 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-06/0.1376, allocations: 0 / 0.5599 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.649e-05/0.1376, allocations: 75.28 kB / 0.56 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1376, allocations: 0 / 0.56 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002028/0.1378, allocations: 15.94 kB / 0.56 GB, free: 0.7578 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.0006108/0.1385, allocations: 0.6852 MB / 0.5607 GB, free: 48 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001132/0.1386, allocations: 55.41 kB / 0.5607 GB, free: 15.98 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1386, allocations: 0 / 0.5607 GB, free: 15.98 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.752e-05/0.1386, allocations: 55.41 kB / 0.5608 GB, free: 15.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/0.1387, allocations: 15.92 kB / 0.5608 GB, free: 15.9 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002966/0.139, allocations: 118.8 kB / 0.5609 GB, free: 15.74 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.1393, allocations: 0.669 MB / 0.5615 GB, free: 15.05 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.7e-06/0.1393, allocations: 0 / 0.5615 GB, free: 15.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.627e-05/0.1394, allocations: 11.44 kB / 0.5616 GB, free: 15.04 MB / 430.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1394, allocations: 0 / 0.5616 GB, free: 15.04 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.1623, allocations: 1.47 MB / 0.563 GB, free: 13.63 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.857/8.019, allocations: 17.39 kB / 0.563 GB, free: 13.62 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 11.008661552099511]