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) 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001106/0.001106, allocations: 187.1 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2082/0.2082, allocations: 44.19 MB / 336.7 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 63.89 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3351, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00139/0.3365, allocations: 493.5 kB / 0.5189 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.338, allocations: 1.389 MB / 0.5202 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.139e-05/0.338, allocations: 0 / 0.5202 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.357e-05/0.338, allocations: 0 / 0.5202 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.839e-06/0.338, allocations: 1.344 kB / 0.5202 GB, free: 1.977 MB / 382.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.0004307/0.3385, allocations: 101.5 kB / 0.5203 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.359e-05/0.3385, allocations: 5.188 kB / 0.5203 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.958e-05/0.3386, allocations: 1.906 kB / 0.5203 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.432e-05/0.3386, allocations: 1.062 kB / 0.5203 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.888e-05/0.3386, allocations: 4.969 kB / 0.5203 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.983e-06/0.3386, allocations: 0 / 0.5203 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002569/0.3389, allocations: 74.7 kB / 0.5204 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-06/0.3389, allocations: 1.25 kB / 0.5204 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.651e-05/0.3389, allocations: 0 / 0.5204 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.488e-05/0.339, allocations: 28.62 kB / 0.5204 GB, free: 1.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.339, allocations: 0.75 kB / 0.5204 GB, free: 1.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.339, allocations: 1.438 kB / 0.5205 GB, free: 1.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.339, allocations: 0 / 0.5205 GB, free: 1.871 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.0002066/0.3393, allocations: 346.2 kB / 0.5208 GB, free: 1.488 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.3393, allocations: 10.16 kB / 0.5208 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.145e-05/0.3393, allocations: 30.75 kB / 0.5208 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.238e-05/0.3394, allocations: 2.438 kB / 0.5208 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.433e-05/0.3394, allocations: 165.9 kB / 0.521 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.3394, allocations: 384 / 0.521 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.301e-06/0.3394, allocations: 1.719 kB / 0.521 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.128e-05/0.3395, allocations: 34.31 kB / 0.521 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.052e-06/0.3395, allocations: 4 kB / 0.521 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-06/0.3395, allocations: 0 / 0.521 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.3395, allocations: 1.438 kB / 0.521 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.562e-05/0.3396, allocations: 4.781 kB / 0.521 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.933e-05/0.3396, allocations: 147.9 kB / 0.5212 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3e-05/0.3397, allocations: 18.17 kB / 0.5212 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.3e-05/0.3397, allocations: 10.88 kB / 0.5212 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.06e-06/0.3397, allocations: 0 / 0.5212 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.3397, allocations: 66.23 kB / 0.5213 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.3397, allocations: 0 / 0.5213 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001547/0.3399, allocations: 69.44 kB / 0.5213 GB, free: 0.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.7e-05/0.3399, allocations: 79.16 kB / 0.5214 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.69e-05/0.34, allocations: 89.86 kB / 0.5215 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.672e-06/0.34, allocations: 25.7 kB / 0.5215 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.998e-06/0.34, allocations: 81.27 kB / 0.5216 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.619e-05/0.34, allocations: 128 / 0.5216 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.292e-05/0.34, allocations: 17.48 kB / 0.5216 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.675e-05/0.3401, allocations: 312.9 kB / 0.5219 GB, free: 200 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.156e-06/0.3401, allocations: 0 / 0.5219 GB, free: 200 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.071e-06/0.3401, allocations: 5.156 kB / 0.5219 GB, free: 196 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.77e-05/0.3401, allocations: 61.02 kB / 0.522 GB, free: 124 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3401, allocations: 0 / 0.522 GB, free: 124 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.971e-05/0.3402, allocations: 64.14 kB / 0.522 GB, free: 56 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.3402, allocations: 40.19 kB / 0.5221 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.3402, allocations: 0 / 0.5221 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.3403, allocations: 1.859 kB / 0.5221 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.3403, allocations: 0 / 0.5221 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.3403, allocations: 4.938 kB / 0.5221 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.389e-05/0.3403, allocations: 3.984 kB / 0.5221 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.3403, allocations: 1.625 kB / 0.5221 GB, free: 8 kB / 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 9.283e-05/0.3404, allocations: 139.4 kB / 0.5222 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.388e-06/0.3404, allocations: 5 kB / 0.5222 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.768e-06/0.3404, allocations: 11.73 kB / 0.5222 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3404, allocations: 1.219 kB / 0.5222 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3404, allocations: 0.6094 kB / 0.5222 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.3404, allocations: 0 / 0.5222 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.146e-05/0.3405, allocations: 149.7 kB / 0.5224 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.3405, allocations: 0 / 0.5224 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.774e-06/0.3405, allocations: 1.828 kB / 0.5224 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3405, allocations: 3.938 kB / 0.5224 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.3406, allocations: 1.719 kB / 0.5224 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.3406, allocations: 0.6562 kB / 0.5224 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.3406, allocations: 7.938 kB / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.84e-05/0.3407, allocations: 93.12 kB / 0.5225 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.329e-05/0.3407, allocations: 89.52 kB / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.209e-05/0.3407, allocations: 1.969 kB / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.055e-06/0.3407, allocations: 0 / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.375e-06/0.3408, allocations: 1.828 kB / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.3408, allocations: 1.094 kB / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.873e-05/0.3408, allocations: 79.31 kB / 0.5226 GB, free: 15.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3408, allocations: 0 / 0.5226 GB, free: 15.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001922/0.341, allocations: 10.55 kB / 0.5226 GB, free: 15.36 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.0004657/0.3415, allocations: 0.666 MB / 0.5233 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.989e-05/0.3416, allocations: 61.86 kB / 0.5234 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3416, allocations: 0.875 kB / 0.5234 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.792e-05/0.3416, allocations: 55.17 kB / 0.5234 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001146/0.3417, allocations: 8.609 kB / 0.5234 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002462/0.342, allocations: 105 kB / 0.5235 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.3422, allocations: 0.6745 MB / 0.5242 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.35e-06/0.3422, allocations: 1.188 kB / 0.5242 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.425e-05/0.3423, allocations: 13.27 kB / 0.5242 GB, free: 13.74 MB / 398.1 MB Notification: Performance of SimCode: time 1.643e-06/0.3423, allocations: 0 / 0.5242 GB, free: 13.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01663/0.3589, allocations: 1.315 MB / 0.5255 GB, free: 13.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.552/7.911, allocations: 15.92 kB / 0.5255 GB, free: 13.31 MB / 398.1 MB (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches