Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001539/0.001539, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001824/0.001824, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.209/0.209, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 78.89 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09435/0.09579, allocations: 62.44 MB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001613/0.09743, allocations: 0.4906 MB / 480.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001998/0.09945, allocations: 1.64 MB / 482.2 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.752e-05/0.09948, allocations: 4 kB / 482.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.157e-05/0.09952, allocations: 0 / 482.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.489e-06/0.09953, allocations: 0 / 482.3 MB, free: 3.059 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0006208/0.1002, allocations: 159.4 kB / 482.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.837e-05/0.1002, allocations: 0 / 482.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.126e-05/0.1002, allocations: 4 kB / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.198e-05/0.1003, allocations: 4 kB / 482.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.088e-05/0.1003, allocations: 7.922 kB / 482.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.012e-06/0.1003, allocations: 3.938 kB / 482.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002819/0.1006, allocations: 111.9 kB / 482.5 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.49e-05/0.1006, allocations: 3.984 kB / 482.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.543e-05/0.1006, allocations: 0 / 482.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001753/0.1008, allocations: 99.89 kB / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1008, allocations: 0 / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1008, allocations: 0 / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.1008, allocations: 0 / 482.6 MB, free: 2.672 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.0003001/0.1011, allocations: 373.4 kB / 483 MB, free: 2.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.1012, allocations: 8.031 kB / 483 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.855e-05/0.1012, allocations: 34.75 kB / 483 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.068e-05/0.1012, allocations: 0.9375 kB / 483 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.38e-05/0.1013, allocations: 168.4 kB / 483.2 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.1013, allocations: 384 / 483.2 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.471e-06/0.1014, allocations: 384 / 483.2 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.088e-05/0.1014, allocations: 37.77 kB / 483.2 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.21e-06/0.1014, allocations: 4 kB / 483.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.052e-06/0.1015, allocations: 0 / 483.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.1015, allocations: 0 / 483.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.433e-05/0.1015, allocations: 0 / 483.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001191/0.1016, allocations: 157.7 kB / 483.4 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.41e-05/0.1016, allocations: 14.58 kB / 483.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.277e-05/0.1017, allocations: 8.953 kB / 483.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-06/0.1017, allocations: 0 / 483.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.1017, allocations: 68.14 kB / 483.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.1017, allocations: 0 / 483.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001456/0.1019, allocations: 67.39 kB / 483.6 MB, free: 1.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.1019, allocations: 77.11 kB / 483.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.339e-05/0.102, allocations: 89.86 kB / 483.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.102, allocations: 29.64 kB / 483.8 MB, free: 1.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.314e-05/0.102, allocations: 80.14 kB / 483.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.102, allocations: 4.125 kB / 483.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-05/0.1021, allocations: 13.72 kB / 483.8 MB, free: 1.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.279e-05/0.1022, allocations: 310.8 kB / 484.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.739e-06/0.1022, allocations: 4 kB / 484.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.702e-06/0.1022, allocations: 7.875 kB / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.953e-05/0.1023, allocations: 68.25 kB / 484.2 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1023, allocations: 0 / 484.2 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.274e-05/0.1023, allocations: 55.41 kB / 484.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.1024, allocations: 41.73 kB / 484.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1024, allocations: 0 / 484.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.487e-06/0.1024, allocations: 0 / 484.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.505e-06/0.1024, allocations: 4 kB / 484.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.1024, allocations: 0 / 484.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.583e-05/0.1024, allocations: 3.984 kB / 484.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-06/0.1024, allocations: 4 kB / 484.3 MB, free: 0.6914 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.656e-05/0.1025, allocations: 135.5 kB / 484.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.338e-06/0.1025, allocations: 3.938 kB / 484.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.682e-06/0.1026, allocations: 11.12 kB / 484.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1026, allocations: 0 / 484.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.1026, allocations: 3.938 kB / 484.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.1026, allocations: 0 / 484.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.573e-05/0.1027, allocations: 149.6 kB / 484.6 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1027, allocations: 0 / 484.6 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1027, allocations: 0 / 484.6 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1027, allocations: 7.938 kB / 484.6 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-06/0.1027, allocations: 0 / 484.6 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1027, allocations: 0 / 484.6 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1027, allocations: 0 / 484.6 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.226e-05/0.1028, allocations: 94.83 kB / 484.7 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.561e-05/0.1028, allocations: 81.05 kB / 484.8 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.085e-05/0.1029, allocations: 0 / 484.8 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.406e-06/0.1029, allocations: 0 / 484.8 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.148e-05/0.1029, allocations: 4 kB / 484.8 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.1029, allocations: 0 / 484.8 MB, free: 108 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.461e-05/0.1029, allocations: 79.22 kB / 484.9 MB, free: 16.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1029, allocations: 4.031 kB / 484.9 MB, free: 16.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002492/0.1032, allocations: 43.98 kB / 484.9 MB, free: 15.98 MB / 366.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.0005433/0.1037, allocations: 0.7172 MB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.649e-05/0.1038, allocations: 59.41 kB / 485.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1038, allocations: 0 / 485.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.98e-05/0.1039, allocations: 55.39 kB / 485.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001218/0.104, allocations: 7.938 kB / 485.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002777/0.1043, allocations: 134.5 kB / 485.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.1045, allocations: 0.669 MB / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.19e-06/0.1045, allocations: 0 / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.578e-06/0.1046, allocations: 11.56 kB / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1046, allocations: 0 / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01693/0.1215, allocations: 2.111 MB / 488.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.558/7.68, allocations: 11.3 kB / 488.7 MB, free: 12.14 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches