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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001296/0.001296, allocations: 120.2 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001452/0.001452, allocations: 214.2 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 230.4 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2185/0.2185, allocations: 46.92 MB / 357.7 MB, free: 10.18 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002152/0.002152, allocations: 79.88 kB / 0.4916 GB, free: 7.727 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1281, allocations: 66.05 MB / 0.5561 GB, free: 5.551 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001683/0.1298, allocations: 490.1 kB / 0.5566 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002639/0.1324, allocations: 1.655 MB / 0.5582 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.062e-05/0.1325, allocations: 0 / 0.5582 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.962e-05/0.1325, allocations: 0 / 0.5582 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.324e-06/0.1325, allocations: 4 kB / 0.5582 GB, free: 3.391 MB / 414.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.001023/0.1335, allocations: 166.1 kB / 0.5584 GB, free: 3.23 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 7.866e-05/0.1336, allocations: 4 kB / 0.5584 GB, free: 3.227 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.423e-05/0.1337, allocations: 4 kB / 0.5584 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.149e-05/0.1337, allocations: 0 / 0.5584 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.7e-05/0.1337, allocations: 3.984 kB / 0.5584 GB, free: 3.219 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.019e-05/0.1337, allocations: 0 / 0.5584 GB, free: 3.219 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005686/0.1343, allocations: 123.9 kB / 0.5585 GB, free: 3.098 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.1343, allocations: 0 / 0.5585 GB, free: 3.098 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.744e-05/0.1343, allocations: 3.984 kB / 0.5585 GB, free: 3.094 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001753/0.1345, allocations: 31.91 kB / 0.5586 GB, free: 3.062 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.1345, allocations: 0 / 0.5586 GB, free: 3.062 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1345, allocations: 0 / 0.5586 GB, free: 3.062 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.1345, allocations: 4 kB / 0.5586 GB, free: 3.059 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.0006042/0.1351, allocations: 357.1 kB / 0.5589 GB, free: 2.656 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.533e-05/0.1352, allocations: 8.031 kB / 0.5589 GB, free: 2.648 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.415e-05/0.1352, allocations: 4.188 kB / 0.5589 GB, free: 2.645 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.055e-05/0.1353, allocations: 34.69 kB / 0.5589 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.625e-05/0.1353, allocations: 0.9375 kB / 0.5589 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001823/0.1355, allocations: 164.4 kB / 0.5591 GB, free: 2.402 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.1355, allocations: 8.359 kB / 0.5591 GB, free: 2.395 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.1355, allocations: 384 / 0.5591 GB, free: 2.395 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/0.1357, allocations: 29.64 kB / 0.5591 GB, free: 2.359 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.1357, allocations: 0 / 0.5591 GB, free: 2.359 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.1357, allocations: 4 kB / 0.5591 GB, free: 2.355 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.1357, allocations: 0 / 0.5591 GB, free: 2.355 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.378e-05/0.1357, allocations: 7.938 kB / 0.5591 GB, free: 2.348 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002632/0.136, allocations: 153.7 kB / 0.5593 GB, free: 2.148 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.706e-05/0.1361, allocations: 18.61 kB / 0.5593 GB, free: 2.121 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.811e-05/0.1361, allocations: 8.859 kB / 0.5593 GB, free: 2.109 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.1361, allocations: 3.938 kB / 0.5593 GB, free: 2.105 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.575e-05/0.1362, allocations: 60.33 kB / 0.5594 GB, free: 2.031 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.1362, allocations: 4 kB / 0.5594 GB, free: 2.027 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002851/0.1365, allocations: 67.33 kB / 0.5594 GB, free: 1.949 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.851e-05/0.1366, allocations: 81.11 kB / 0.5595 GB, free: 1.852 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.611e-05/0.1367, allocations: 93.81 kB / 0.5596 GB, free: 1.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.1367, allocations: 25.7 kB / 0.5596 GB, free: 1.719 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.123e-05/0.1367, allocations: 80.14 kB / 0.5597 GB, free: 1.637 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.1368, allocations: 0 / 0.5597 GB, free: 1.637 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.776e-05/0.1368, allocations: 13.72 kB / 0.5597 GB, free: 1.617 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.137, allocations: 319 kB / 0.56 GB, free: 1.297 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.268e-05/0.1371, allocations: 0 / 0.56 GB, free: 1.297 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.63e-06/0.1371, allocations: 0 / 0.56 GB, free: 1.297 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.639e-05/0.1371, allocations: 64.25 kB / 0.5601 GB, free: 1.219 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1371, allocations: 0 / 0.5601 GB, free: 1.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.966e-05/0.1372, allocations: 67.28 kB / 0.5602 GB, free: 1.141 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.1373, allocations: 29.7 kB / 0.5602 GB, free: 1.105 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.1373, allocations: 4 kB / 0.5602 GB, free: 1.102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.1373, allocations: 4.094 kB / 0.5602 GB, free: 1.098 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.1373, allocations: 3.938 kB / 0.5602 GB, free: 1.094 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.1373, allocations: 3.984 kB / 0.5602 GB, free: 1.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.626e-05/0.1373, allocations: 4 kB / 0.5602 GB, free: 1.086 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.1373, allocations: 0 / 0.5602 GB, free: 1.086 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 0.0001059/0.1374, allocations: 135.5 kB / 0.5603 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.191e-05/0.1374, allocations: 3.938 kB / 0.5603 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.173e-05/0.1375, allocations: 3.125 kB / 0.5603 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1375, allocations: 0 / 0.5603 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1375, allocations: 4 kB / 0.5603 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1375, allocations: 0 / 0.5603 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.1376, allocations: 153.6 kB / 0.5605 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.1376, allocations: 0 / 0.5605 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.015e-06/0.1376, allocations: 3.938 kB / 0.5605 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1376, allocations: 0 / 0.5605 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.141e-06/0.1376, allocations: 0 / 0.5605 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1376, allocations: 0 / 0.5605 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1376, allocations: 4 kB / 0.5605 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001266/0.1377, allocations: 94.77 kB / 0.5606 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.1378, allocations: 81.05 kB / 0.5607 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.1378, allocations: 4 kB / 0.5607 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.458e-06/0.1378, allocations: 0 / 0.5607 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.903e-05/0.1378, allocations: 4 kB / 0.5607 GB, free: 0.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.1378, allocations: 4 kB / 0.5607 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.62e-05/0.1379, allocations: 75.28 kB / 0.5608 GB, free: 432 kB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1379, allocations: 0 / 0.5608 GB, free: 432 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002183/0.1381, allocations: 23.92 kB / 0.5608 GB, free: 408 kB / 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.0007455/0.1388, allocations: 0.6704 MB / 0.5614 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001309/0.139, allocations: 63.39 kB / 0.5615 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.139, allocations: 4.094 kB / 0.5615 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.966e-05/0.139, allocations: 51.41 kB / 0.5615 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.1392, allocations: 9.656 kB / 0.5616 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003628/0.1395, allocations: 126.6 kB / 0.5617 GB, free: 15.38 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.1399, allocations: 0.6728 MB / 0.5623 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.705e-06/0.1399, allocations: 0 / 0.5623 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.808e-05/0.1399, allocations: 7.438 kB / 0.5623 GB, free: 14.68 MB / 430.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1399, allocations: 0 / 0.5623 GB, free: 14.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01697/0.1569, allocations: 1.51 MB / 0.5638 GB, free: 13.24 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.664/7.821, allocations: 13.42 kB / 0.5638 GB, free: 13.23 MB / 430.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.618095665995497]