Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 100.7 kB / 16.4 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 192.2 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2485/0.2485, allocations: 43.51 MB / 314.1 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 73.45 kB / 441.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1462, allocations: 57.78 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001635/0.1479, allocations: 0.4908 MB / 0.4883 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.1498, allocations: 1.427 MB / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.771e-05/0.1498, allocations: 0 / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.263e-05/0.1498, allocations: 0 / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.272e-06/0.1498, allocations: 0 / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005541/0.1504, allocations: 107.7 kB / 0.4898 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.396e-05/0.1505, allocations: 4 kB / 0.4898 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.273e-05/0.1505, allocations: 0 / 0.4898 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.1506, allocations: 3.938 kB / 0.4898 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.681e-05/0.1506, allocations: 0 / 0.4898 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.838e-06/0.1506, allocations: 0 / 0.4898 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003186/0.1509, allocations: 75.92 kB / 0.4899 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.136e-06/0.1509, allocations: 0 / 0.4899 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.448e-05/0.151, allocations: 7.984 kB / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.1511, allocations: 19.92 kB / 0.4899 GB, free: 9.664 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.1511, allocations: 3.984 kB / 0.4899 GB, free: 9.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1511, allocations: 0 / 0.4899 GB, free: 9.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.1511, allocations: 0 / 0.4899 GB, free: 9.66 MB / 382.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.0004252/0.1515, allocations: 345.3 kB / 0.4903 GB, free: 9.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.1516, allocations: 15.89 kB / 0.4903 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.614e-05/0.1516, allocations: 0.9375 kB / 0.4903 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.1518, allocations: 164.4 kB / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.1518, allocations: 384 / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.1518, allocations: 384 / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.499e-05/0.1519, allocations: 41.94 kB / 0.4905 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.1519, allocations: 0 / 0.4905 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.1519, allocations: 3.938 kB / 0.4905 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.1519, allocations: 7.984 kB / 0.4905 GB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.898e-05/0.152, allocations: 0 / 0.4905 GB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000198/0.1522, allocations: 157.6 kB / 0.4907 GB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.684e-05/0.1522, allocations: 14.58 kB / 0.4907 GB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.756e-05/0.1522, allocations: 4.953 kB / 0.4907 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/0.1523, allocations: 4 kB / 0.4907 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.013e-05/0.1523, allocations: 64.14 kB / 0.4907 GB, free: 8.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.1524, allocations: 4 kB / 0.4907 GB, free: 8.676 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0003217/0.1527, allocations: 67.39 kB / 0.4908 GB, free: 8.598 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.338e-05/0.1528, allocations: 77.11 kB / 0.4909 GB, free: 8.504 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.734e-05/0.1529, allocations: 89.86 kB / 0.491 GB, free: 8.406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.1529, allocations: 25.7 kB / 0.491 GB, free: 8.375 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.481e-05/0.153, allocations: 80.14 kB / 0.4911 GB, free: 8.293 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.787e-05/0.153, allocations: 4 kB / 0.4911 GB, free: 8.289 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.153, allocations: 13.72 kB / 0.4911 GB, free: 8.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.1533, allocations: 315 kB / 0.4914 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.759e-05/0.1533, allocations: 0 / 0.4914 GB, free: 7.953 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.322e-06/0.1533, allocations: 4 kB / 0.4914 GB, free: 7.949 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001188/0.1534, allocations: 68.19 kB / 0.4915 GB, free: 7.867 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.1534, allocations: 3.938 kB / 0.4915 GB, free: 7.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.051e-05/0.1535, allocations: 59.41 kB / 0.4915 GB, free: 7.793 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.712e-05/0.1536, allocations: 37.64 kB / 0.4915 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.1536, allocations: 96 / 0.4915 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.1536, allocations: 4 kB / 0.4916 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.191e-06/0.1536, allocations: 4 kB / 0.4916 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.1537, allocations: 3.984 kB / 0.4916 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.262e-05/0.1537, allocations: 7.922 kB / 0.4916 GB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.1537, allocations: 4 kB / 0.4916 GB, free: 7.727 MB / 382.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.000157/0.1539, allocations: 135.5 kB / 0.4917 GB, free: 7.578 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.043e-05/0.1539, allocations: 3.938 kB / 0.4917 GB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.261e-05/0.1539, allocations: 7.125 kB / 0.4917 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1539, allocations: 4 kB / 0.4917 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.154, allocations: 0 / 0.4917 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.154, allocations: 0 / 0.4917 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001663/0.1541, allocations: 149.6 kB / 0.4919 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1541, allocations: 0 / 0.4919 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1542, allocations: 0 / 0.4919 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.1542, allocations: 7.938 kB / 0.4919 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.1542, allocations: 0 / 0.4919 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1542, allocations: 0 / 0.4919 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1542, allocations: 0 / 0.4919 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001328/0.1543, allocations: 98.77 kB / 0.492 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.613e-05/0.1544, allocations: 77.11 kB / 0.492 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.1544, allocations: 7.938 kB / 0.492 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-06/0.1545, allocations: 0 / 0.492 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.811e-05/0.1545, allocations: 4 kB / 0.492 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.1545, allocations: 0 / 0.492 GB, free: 7.129 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.993e-05/0.1545, allocations: 75.28 kB / 0.4921 GB, free: 7.055 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1545, allocations: 0 / 0.4921 GB, free: 7.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002319/0.1548, allocations: 12.03 kB / 0.4921 GB, free: 7.043 MB / 382.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.0003946/0.1552, allocations: 122 kB / 0.4922 GB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001456/0.1553, allocations: 63.34 kB / 0.4923 GB, free: 6.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.1553, allocations: 0 / 0.4923 GB, free: 6.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.192e-05/0.1554, allocations: 63.33 kB / 0.4924 GB, free: 6.766 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001821/0.1556, allocations: 7.938 kB / 0.4924 GB, free: 6.758 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003095/0.1559, allocations: 89.05 kB / 0.4925 GB, free: 6.645 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005055/0.1564, allocations: 0.669 MB / 0.4931 GB, free: 5.949 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.915e-06/0.1564, allocations: 0 / 0.4931 GB, free: 5.949 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.143e-05/0.1565, allocations: 7.438 kB / 0.4931 GB, free: 5.941 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1565, allocations: 0 / 0.4931 GB, free: 5.941 MB / 382.1 MB Notification: Performance of Templates: time 0.003458/0.1599, allocations: 0.5318 MB / 0.4936 GB, free: 5.41 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches