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.001184/0.001184, allocations: 112.8 kB / 17.78 MB, free: 5.277 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.001006/0.001006, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.328/1.328, allocations: 222.9 MB / 242.4 MB, free: 15.15 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.2014/0.2014, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 59.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3354, allocations: 60.83 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001477/0.3369, allocations: 0.4929 MB / 0.5189 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.3384, allocations: 1.386 MB / 0.5202 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.232e-05/0.3384, allocations: 5 kB / 0.5202 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.66e-05/0.3385, allocations: 0 / 0.5202 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.931e-06/0.3385, allocations: 0 / 0.5202 GB, free: 1.965 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.0004607/0.3389, allocations: 110.2 kB / 0.5204 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.506e-05/0.339, allocations: 1.156 kB / 0.5204 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.832e-05/0.339, allocations: 1.844 kB / 0.5204 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.308e-05/0.3391, allocations: 1.219 kB / 0.5204 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.148e-05/0.3391, allocations: 5.734 kB / 0.5204 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.444e-06/0.3391, allocations: 0 / 0.5204 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003004/0.3394, allocations: 69.86 kB / 0.5204 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.173e-06/0.3394, allocations: 0 / 0.5204 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.906e-05/0.3394, allocations: 5.922 kB / 0.5204 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.215e-05/0.3395, allocations: 20.56 kB / 0.5205 GB, free: 1.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3396, allocations: 4 kB / 0.5205 GB, free: 1.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3396, allocations: 0 / 0.5205 GB, free: 1.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.3396, allocations: 1.156 kB / 0.5205 GB, free: 1.859 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.0002654/0.3398, allocations: 339.4 kB / 0.5208 GB, free: 1.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3399, allocations: 9.594 kB / 0.5208 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.089e-05/0.3399, allocations: 35.84 kB / 0.5208 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.307e-05/0.3399, allocations: 0.9375 kB / 0.5208 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.804e-05/0.34, allocations: 162.8 kB / 0.521 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.874e-06/0.34, allocations: 384 / 0.521 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.34, allocations: 1.531 kB / 0.521 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.271e-05/0.3401, allocations: 33.31 kB / 0.521 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.3401, allocations: 1.062 kB / 0.521 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-06/0.3401, allocations: 0.6562 kB / 0.521 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.3401, allocations: 0 / 0.521 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.557e-05/0.3402, allocations: 5.281 kB / 0.521 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.231e-05/0.3402, allocations: 153.1 kB / 0.5212 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.122e-05/0.3403, allocations: 21.25 kB / 0.5212 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.182e-05/0.3403, allocations: 10.61 kB / 0.5212 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.697e-06/0.3403, allocations: 0 / 0.5212 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.3403, allocations: 64 kB / 0.5213 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.3403, allocations: 0 / 0.5213 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001403/0.3405, allocations: 72.95 kB / 0.5213 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.372e-05/0.3405, allocations: 77.11 kB / 0.5214 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.845e-05/0.3405, allocations: 91.59 kB / 0.5215 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.29e-06/0.3406, allocations: 25.7 kB / 0.5215 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.688e-06/0.3406, allocations: 81.33 kB / 0.5216 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.767e-05/0.3406, allocations: 2.672 kB / 0.5216 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.266e-05/0.3406, allocations: 16.5 kB / 0.5216 GB, free: 0.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.049e-05/0.3407, allocations: 312.5 kB / 0.5219 GB, free: 192 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-06/0.3407, allocations: 5.406 kB / 0.5219 GB, free: 188 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.132e-06/0.3407, allocations: 5.672 kB / 0.5219 GB, free: 184 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.003e-05/0.3407, allocations: 60.33 kB / 0.522 GB, free: 112 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3407, allocations: 7.875 kB / 0.522 GB, free: 104 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.195e-05/0.3408, allocations: 64.08 kB / 0.522 GB, free: 36 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.3408, allocations: 36.11 kB / 0.5221 GB, free: 0 / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.3408, allocations: 0.5625 kB / 0.5221 GB, free: 0 / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.3408, allocations: 1.125 kB / 0.5221 GB, free: 0 / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.3409, allocations: 4.141 kB / 0.5221 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.3409, allocations: 0.75 kB / 0.5221 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.366e-05/0.3409, allocations: 1.125 kB / 0.5221 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.3409, allocations: 1.281 kB / 0.5221 GB, free: 15.99 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.331e-05/0.341, allocations: 135.1 kB / 0.5222 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.146e-05/0.341, allocations: 8.688 kB / 0.5222 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.054e-05/0.341, allocations: 8.141 kB / 0.5222 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.341, allocations: 0 / 0.5222 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.341, allocations: 1.703 kB / 0.5222 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.3411, allocations: 4 kB / 0.5222 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.113e-05/0.3411, allocations: 145.3 kB / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3411, allocations: 1.375 kB / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.62e-07/0.3412, allocations: 0 / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3412, allocations: 3.938 kB / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.3412, allocations: 1.484 kB / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.3412, allocations: 1.062 kB / 0.5224 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3412, allocations: 7.875 kB / 0.5224 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001075/0.3413, allocations: 97.77 kB / 0.5225 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.897e-05/0.3413, allocations: 81.05 kB / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.32e-05/0.3414, allocations: 1.75 kB / 0.5226 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.054e-05/0.3414, allocations: 5.031 kB / 0.5226 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.974e-05/0.3414, allocations: 1.781 kB / 0.5226 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/0.3414, allocations: 1.25 kB / 0.5226 GB, free: 15.42 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.861e-05/0.3414, allocations: 76.03 kB / 0.5226 GB, free: 15.35 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3414, allocations: 0 / 0.5226 GB, free: 15.35 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001958/0.3416, allocations: 10.19 kB / 0.5227 GB, free: 15.35 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.000495/0.3421, allocations: 0.6663 MB / 0.5233 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.413e-05/0.3423, allocations: 62.03 kB / 0.5234 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3423, allocations: 5.094 kB / 0.5234 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.085e-05/0.3423, allocations: 55.48 kB / 0.5234 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001177/0.3424, allocations: 4.344 kB / 0.5234 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002513/0.3427, allocations: 108.3 kB / 0.5235 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.3429, allocations: 0.675 MB / 0.5242 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.36e-06/0.3429, allocations: 0 / 0.5242 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.323e-05/0.3429, allocations: 8.406 kB / 0.5242 GB, free: 13.73 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.343, allocations: 4.969 kB / 0.5242 GB, free: 13.72 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01677/0.3597, allocations: 1.32 MB / 0.5255 GB, free: 13.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.307/7.667, allocations: 13.72 kB / 0.5255 GB, free: 13.29 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 & 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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions_res.csv","/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