Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001794/0.001794, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002278/0.002278, allocations: 216.4 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2219/0.2219, allocations: 46.93 MB / 360.8 MB, free: 4.277 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 67.89 kB / 0.4961 GB, free: 7.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3034, allocations: 66.04 MB / 0.5606 GB, free: 4.473 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00163/0.305, allocations: 489 kB / 0.5611 GB, free: 3.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002297/0.3073, allocations: 1.664 MB / 0.5627 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.463e-05/0.3073, allocations: 0 / 0.5627 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.184e-05/0.3074, allocations: 7.938 kB / 0.5627 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.362e-06/0.3074, allocations: 0 / 0.5627 GB, free: 2.305 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0006557/0.308, allocations: 167.5 kB / 0.5629 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.073e-05/0.3081, allocations: 3.938 kB / 0.5629 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.209e-05/0.3081, allocations: 4 kB / 0.5629 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.376e-05/0.3081, allocations: 0 / 0.5629 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.11e-05/0.3081, allocations: 0 / 0.5629 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.903e-06/0.3081, allocations: 0 / 0.5629 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003744/0.3085, allocations: 131.8 kB / 0.563 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.563e-06/0.3085, allocations: 0 / 0.563 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.676e-05/0.3085, allocations: 0 / 0.563 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.3087, allocations: 33.78 kB / 0.5631 GB, free: 1.973 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.3087, allocations: 0 / 0.5631 GB, free: 1.973 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3087, allocations: 0 / 0.5631 GB, free: 1.973 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.3087, allocations: 4 kB / 0.5631 GB, free: 1.969 MB / 398.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.0003183/0.309, allocations: 280 kB / 0.5633 GB, free: 1.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.309, allocations: 12.03 kB / 0.5633 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.611e-05/0.3091, allocations: 30.75 kB / 0.5634 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.246e-05/0.3091, allocations: 0.9375 kB / 0.5634 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.992e-05/0.3092, allocations: 106.5 kB / 0.5635 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.3092, allocations: 384 / 0.5635 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-06/0.3092, allocations: 384 / 0.5635 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.993e-05/0.3093, allocations: 37.77 kB / 0.5635 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.3093, allocations: 3.984 kB / 0.5635 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-06/0.3093, allocations: 0 / 0.5635 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-06/0.3093, allocations: 0 / 0.5635 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.614e-05/0.3093, allocations: 8 kB / 0.5635 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001322/0.3094, allocations: 116.8 kB / 0.5636 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.8e-05/0.3095, allocations: 14.58 kB / 0.5636 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.524e-05/0.3095, allocations: 4.859 kB / 0.5637 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.063e-06/0.3095, allocations: 4.094 kB / 0.5637 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.963e-05/0.3095, allocations: 68.14 kB / 0.5637 GB, free: 1.152 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.3095, allocations: 4 kB / 0.5637 GB, free: 1.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001795/0.3097, allocations: 63.39 kB / 0.5638 GB, free: 1.074 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/0.3098, allocations: 77.11 kB / 0.5639 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.84e-05/0.3099, allocations: 97.75 kB / 0.564 GB, free: 0.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.3099, allocations: 25.7 kB / 0.564 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.963e-05/0.3099, allocations: 80.14 kB / 0.5641 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.3099, allocations: 4 kB / 0.5641 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.31, allocations: 17.7 kB / 0.5641 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3101, allocations: 315 kB / 0.5644 GB, free: 428 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.264e-05/0.3101, allocations: 4 kB / 0.5644 GB, free: 424 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.451e-06/0.3101, allocations: 4 kB / 0.5644 GB, free: 420 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.121e-05/0.3102, allocations: 64.2 kB / 0.5644 GB, free: 340 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3102, allocations: 0 / 0.5644 GB, free: 340 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.397e-05/0.3103, allocations: 63.39 kB / 0.5645 GB, free: 264 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/0.3103, allocations: 37.64 kB / 0.5645 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-06/0.3103, allocations: 0 / 0.5645 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.3103, allocations: 4.094 kB / 0.5645 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.72e-07/0.3103, allocations: 0 / 0.5645 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.3103, allocations: 0 / 0.5645 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.345e-05/0.3103, allocations: 3.938 kB / 0.5645 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-06/0.3103, allocations: 4 kB / 0.5646 GB, free: 208 kB / 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 9.58e-05/0.3104, allocations: 139.5 kB / 0.5647 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.031e-05/0.3104, allocations: 3.938 kB / 0.5647 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.322e-05/0.3104, allocations: 6.984 kB / 0.5647 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.3104, allocations: 4 kB / 0.5647 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.3105, allocations: 4 kB / 0.5647 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.3105, allocations: 0 / 0.5647 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.3106, allocations: 112.8 kB / 0.5648 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.3106, allocations: 11.92 kB / 0.5648 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3106, allocations: 0 / 0.5648 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3106, allocations: 7.938 kB / 0.5648 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.3106, allocations: 4 kB / 0.5648 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.3106, allocations: 0 / 0.5648 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.3106, allocations: 7.969 kB / 0.5648 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.3107, allocations: 90.84 kB / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.244e-06/0.3107, allocations: 3.938 kB / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.3107, allocations: 3.984 kB / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.286e-06/0.3107, allocations: 0 / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.116e-05/0.3107, allocations: 4 kB / 0.5649 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.3107, allocations: 0 / 0.5649 GB, free: 15.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.029e-05/0.3108, allocations: 75.28 kB / 0.565 GB, free: 15.65 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3108, allocations: 0 / 0.565 GB, free: 15.65 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002099/0.311, allocations: 15.94 kB / 0.565 GB, free: 15.63 MB / 414.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.0005923/0.3116, allocations: 0.6772 MB / 0.5657 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.807e-05/0.3117, allocations: 55.41 kB / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3117, allocations: 4.094 kB / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.637e-05/0.3117, allocations: 55.41 kB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.3118, allocations: 7.938 kB / 0.5658 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000297/0.3121, allocations: 126.7 kB / 0.5659 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.3124, allocations: 0.669 MB / 0.5666 GB, free: 13.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.01e-06/0.3124, allocations: 0 / 0.5666 GB, free: 13.92 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.379e-05/0.3125, allocations: 7.438 kB / 0.5666 GB, free: 13.91 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3125, allocations: 4 kB / 0.5666 GB, free: 13.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02673/0.3392, allocations: 1.599 MB / 0.5682 GB, free: 12.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.96, allocations: 64 / 0.5682 GB, free: 12.45 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.93899780400534]