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.001281/0.001281, allocations: 118.5 kB / 18.45 MB, free: 4.613 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.001256/0.001256, allocations: 191.7 kB / 21.39 MB, free: 1.684 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.428/1.428, allocations: 222.9 MB / 247.1 MB, free: 4.34 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.3556/0.3556, allocations: 44.25 MB / 343.5 MB, free: 7.621 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.002064/0.002064, allocations: 69.25 kB / 478.8 MB, free: 24.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1365, allocations: 60.83 MB / 0.527 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001547/0.1381, allocations: 0.4892 MB / 0.5275 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.1402, allocations: 1.377 MB / 0.5288 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.04e-05/0.1402, allocations: 4 kB / 0.5288 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.662e-05/0.1402, allocations: 0 / 0.5288 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.063e-06/0.1403, allocations: 0 / 0.5288 GB, free: 11.81 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.0005471/0.1408, allocations: 111.6 kB / 0.5289 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.315e-05/0.1409, allocations: 4 kB / 0.5289 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.214e-05/0.1409, allocations: 0 / 0.5289 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.494e-05/0.1409, allocations: 0 / 0.5289 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.661e-05/0.141, allocations: 7.922 kB / 0.5289 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.258e-06/0.141, allocations: 4 kB / 0.5289 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002876/0.1413, allocations: 63.88 kB / 0.529 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.328e-05/0.1413, allocations: 3.984 kB / 0.529 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.131e-05/0.1413, allocations: 4 kB / 0.529 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.663e-05/0.1414, allocations: 19.92 kB / 0.529 GB, free: 11.6 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1414, allocations: 0 / 0.529 GB, free: 11.6 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1415, allocations: 0 / 0.529 GB, free: 11.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1415, allocations: 7.984 kB / 0.529 GB, free: 11.59 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.0004038/0.1419, allocations: 347.4 kB / 0.5294 GB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.1419, allocations: 12.03 kB / 0.5294 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.004e-05/0.142, allocations: 34.75 kB / 0.5294 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.435e-05/0.142, allocations: 0.9375 kB / 0.5294 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.1422, allocations: 164.4 kB / 0.5296 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.1422, allocations: 384 / 0.5296 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.773e-06/0.1422, allocations: 384 / 0.5296 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.736e-05/0.1423, allocations: 33.83 kB / 0.5296 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.1423, allocations: 0 / 0.5296 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.1423, allocations: 4 kB / 0.5296 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.1423, allocations: 0 / 0.5296 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.964e-05/0.1424, allocations: 7.938 kB / 0.5296 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.1425, allocations: 153.7 kB / 0.5298 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.376e-05/0.1426, allocations: 14.58 kB / 0.5298 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.599e-05/0.1426, allocations: 12.89 kB / 0.5298 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.977e-06/0.1426, allocations: 0 / 0.5298 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.512e-05/0.1427, allocations: 60.2 kB / 0.5298 GB, free: 10.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.1427, allocations: 0 / 0.5298 GB, free: 10.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.00018/0.1429, allocations: 75.33 kB / 0.5299 GB, free: 10.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/0.1429, allocations: 77.11 kB / 0.53 GB, free: 10.4 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.051e-05/0.143, allocations: 89.86 kB / 0.5301 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.143, allocations: 29.7 kB / 0.5301 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.652e-05/0.1431, allocations: 80.14 kB / 0.5302 GB, free: 10.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.1431, allocations: 0 / 0.5302 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.295e-05/0.1431, allocations: 9.719 kB / 0.5302 GB, free: 10.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1433, allocations: 314.8 kB / 0.5305 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.097e-06/0.1433, allocations: 8.125 kB / 0.5305 GB, free: 9.848 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.649e-06/0.1433, allocations: 0 / 0.5305 GB, free: 9.848 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.509e-05/0.1434, allocations: 64.25 kB / 0.5306 GB, free: 9.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1434, allocations: 0 / 0.5306 GB, free: 9.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.168e-05/0.1435, allocations: 63.34 kB / 0.5306 GB, free: 9.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.1435, allocations: 33.64 kB / 0.5307 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.1435, allocations: 0 / 0.5307 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.1435, allocations: 0 / 0.5307 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.11e-07/0.1435, allocations: 0 / 0.5307 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.1435, allocations: 12.02 kB / 0.5307 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.479e-05/0.1436, allocations: 4 kB / 0.5307 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.1436, allocations: 4 kB / 0.5307 GB, free: 9.637 MB / 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 8.633e-05/0.1437, allocations: 131.5 kB / 0.5308 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.265e-05/0.1437, allocations: 11.89 kB / 0.5308 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.044e-05/0.1437, allocations: 3.125 kB / 0.5308 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.1437, allocations: 0 / 0.5308 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1437, allocations: 0 / 0.5308 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-06/0.1437, allocations: 0 / 0.5308 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.1438, allocations: 149.7 kB / 0.531 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.1439, allocations: 4 kB / 0.531 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1439, allocations: 0 / 0.531 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.1439, allocations: 3.938 kB / 0.531 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.56e-06/0.1439, allocations: 0 / 0.531 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1439, allocations: 0 / 0.531 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1439, allocations: 7.922 kB / 0.531 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001087/0.144, allocations: 94.77 kB / 0.5311 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.294e-05/0.1441, allocations: 85.08 kB / 0.5311 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.1441, allocations: 0 / 0.5311 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.307e-05/0.1441, allocations: 8 kB / 0.5312 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.697e-06/0.1441, allocations: 0 / 0.5312 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.1441, allocations: 4 kB / 0.5312 GB, free: 9.035 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.076e-05/0.1442, allocations: 75.28 kB / 0.5312 GB, free: 8.961 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1442, allocations: 0 / 0.5312 GB, free: 8.961 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002043/0.1444, allocations: 15.94 kB / 0.5312 GB, free: 8.945 MB / 398.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.0006733/0.1451, allocations: 0.6628 MB / 0.5319 GB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.454e-05/0.1452, allocations: 59.41 kB / 0.5319 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1452, allocations: 0 / 0.5319 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.772e-05/0.1452, allocations: 59.5 kB / 0.532 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001204/0.1453, allocations: 7.938 kB / 0.532 GB, free: 8.105 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/0.1456, allocations: 102.7 kB / 0.5321 GB, free: 7.965 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.146, allocations: 0.6766 MB / 0.5328 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.571e-06/0.146, allocations: 0 / 0.5328 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.283e-05/0.146, allocations: 7.438 kB / 0.5328 GB, free: 7.254 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.146, allocations: 0 / 0.5328 GB, free: 7.254 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.1693, allocations: 1.326 MB / 0.5341 GB, free: 6.004 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.746/7.915, allocations: 0 / 0.5341 GB, free: 6.004 MB / 398.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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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.830709747038782]