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.00148/0.00148, allocations: 103.9 kB / 17.63 MB, free: 5.344 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.001599/0.001599, allocations: 192 kB / 18.56 MB, free: 4.434 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.312/1.312, allocations: 222.9 MB / 242.3 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.1964/0.1964, allocations: 44.18 MB / 336.6 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 73.16 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0932/0.09443, allocations: 60.82 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001706/0.09618, allocations: 483.7 kB / 469.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.09779, allocations: 1.395 MB / 471.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.104e-05/0.09782, allocations: 0 / 471.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.14e-05/0.09784, allocations: 0 / 471.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.138e-06/0.09786, allocations: 0 / 471.2 MB, free: 12.37 MB / 350.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.000478/0.09834, allocations: 110.4 kB / 471.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.959e-05/0.09839, allocations: 0 / 471.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.208e-05/0.09843, allocations: 11.98 kB / 471.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.166e-05/0.09845, allocations: 0 / 471.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.835e-05/0.09847, allocations: 4 kB / 471.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.743e-06/0.09848, allocations: 0 / 471.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.09864, allocations: 35.97 kB / 471.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.512e-06/0.09865, allocations: 3.938 kB / 471.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.734e-05/0.09867, allocations: 0 / 471.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.675e-05/0.09878, allocations: 47.92 kB / 471.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.09879, allocations: 0 / 471.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.09879, allocations: 3.938 kB / 471.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.09881, allocations: 8 kB / 471.4 MB, free: 12.15 MB / 350.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.0002552/0.09907, allocations: 333.3 kB / 471.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.09911, allocations: 12.03 kB / 471.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.212e-05/0.09914, allocations: 30.75 kB / 471.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.043e-05/0.09917, allocations: 0.9375 kB / 471.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.38e-05/0.09926, allocations: 168.4 kB / 472 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-06/0.09928, allocations: 4.375 kB / 472 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.09929, allocations: 4.375 kB / 472 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.592e-05/0.09936, allocations: 29.83 kB / 472 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-06/0.09938, allocations: 4 kB / 472 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.302e-06/0.09939, allocations: 0 / 472 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-06/0.0994, allocations: 0 / 472 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.726e-05/0.09942, allocations: 7.938 kB / 472 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001013/0.09952, allocations: 145.7 kB / 472.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.317e-05/0.09956, allocations: 18.61 kB / 472.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.278e-05/0.09958, allocations: 12.8 kB / 472.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.565e-06/0.09959, allocations: 4 kB / 472.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.09963, allocations: 60.2 kB / 472.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.09964, allocations: 0 / 472.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001359/0.09978, allocations: 67.39 kB / 472.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.09983, allocations: 81.05 kB / 472.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.553e-05/0.09987, allocations: 93.86 kB / 472.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.09989, allocations: 25.7 kB / 472.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.071e-05/0.09991, allocations: 84.14 kB / 472.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.396e-05/0.09993, allocations: 4.125 kB / 472.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.09996, allocations: 9.719 kB / 472.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.505e-05/0.1001, allocations: 314.8 kB / 472.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.075e-06/0.1001, allocations: 0 / 472.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-06/0.1001, allocations: 0 / 472.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.1e-05/0.1001, allocations: 64.25 kB / 473 MB, free: 10.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1001, allocations: 0 / 473 MB, free: 10.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.452e-05/0.1002, allocations: 71.41 kB / 473.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.1002, allocations: 33.64 kB / 473.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.1002, allocations: 0 / 473.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.918e-06/0.1003, allocations: 0 / 473.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.033e-06/0.1003, allocations: 3.984 kB / 473.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.1003, allocations: 4 kB / 473.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.297e-05/0.1003, allocations: 0 / 473.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.1003, allocations: 0 / 473.1 MB, free: 10.21 MB / 350.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 7.778e-05/0.1004, allocations: 135.5 kB / 473.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.1004, allocations: 7.844 kB / 473.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.367e-06/0.1004, allocations: 11.11 kB / 473.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1004, allocations: 0 / 473.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1004, allocations: 0 / 473.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.1004, allocations: 0 / 473.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.73e-05/0.1005, allocations: 153.7 kB / 473.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1005, allocations: 0 / 473.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1005, allocations: 0 / 473.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.1005, allocations: 3.938 kB / 473.4 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.852e-06/0.1006, allocations: 0 / 473.4 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.1006, allocations: 0 / 473.4 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1006, allocations: 3.938 kB / 473.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.96e-05/0.1007, allocations: 98.77 kB / 473.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.676e-05/0.1007, allocations: 81.05 kB / 473.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.167e-05/0.1007, allocations: 4 kB / 473.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.937e-06/0.1007, allocations: 4 kB / 473.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.258e-05/0.1007, allocations: 3.984 kB / 473.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-06/0.1008, allocations: 0 / 473.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.484e-05/0.1008, allocations: 79.31 kB / 473.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1008, allocations: 0 / 473.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002233/0.101, allocations: 19.98 kB / 473.7 MB, free: 9.508 MB / 350.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.0004378/0.1015, allocations: 0.6714 MB / 474.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.903e-05/0.1015, allocations: 71.33 kB / 474.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1016, allocations: 0 / 474.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.595e-05/0.1016, allocations: 55.41 kB / 474.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001171/0.1017, allocations: 4.281 kB / 474.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000241/0.102, allocations: 110.6 kB / 474.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001776/0.1021, allocations: 0.669 MB / 475.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.668e-06/0.1022, allocations: 128 / 475.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.041e-05/0.1022, allocations: 15.44 kB / 475.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1022, allocations: 0 / 475.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03412/0.1363, allocations: 1.474 MB / 476.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.275/9.411, allocations: 1.031 kB / 476.8 MB, free: 6.375 MB / 350.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