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.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.001822/0.001822, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.002423/0.002423, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.441/1.441, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2268/0.2268, allocations: 44.91 MB / 358.8 MB, free: 6.301 MB / 286.1 MB " [Timeout remaining time 180] 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.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_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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 59.91 kB / 0.4931 GB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3314, allocations: 65.48 MB / 0.557 GB, free: 7.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001663/0.3331, allocations: 0.4926 MB / 0.5575 GB, free: 7.059 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002487/0.3355, allocations: 1.662 MB / 0.5591 GB, free: 5.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.316e-05/0.3356, allocations: 0 / 0.5591 GB, free: 5.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.662e-05/0.3356, allocations: 0 / 0.5591 GB, free: 5.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.111e-06/0.3356, allocations: 4 kB / 0.5591 GB, free: 5.516 MB / 398.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.0006751/0.3363, allocations: 163.4 kB / 0.5593 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.938e-05/0.3363, allocations: 3.938 kB / 0.5593 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.276e-05/0.3364, allocations: 0 / 0.5593 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.521e-05/0.3364, allocations: 0 / 0.5593 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.871e-05/0.3364, allocations: 11.98 kB / 0.5593 GB, free: 5.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.585e-06/0.3364, allocations: 0 / 0.5593 GB, free: 5.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003896/0.3368, allocations: 115.9 kB / 0.5594 GB, free: 5.227 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-06/0.3368, allocations: 0 / 0.5594 GB, free: 5.227 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.376e-05/0.3368, allocations: 7.984 kB / 0.5594 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.337, allocations: 45.72 kB / 0.5594 GB, free: 5.176 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.337, allocations: 0 / 0.5594 GB, free: 5.176 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.337, allocations: 0 / 0.5594 GB, free: 5.176 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.337, allocations: 0 / 0.5594 GB, free: 5.176 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.0003565/0.3373, allocations: 280 kB / 0.5597 GB, free: 4.867 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.3374, allocations: 12.03 kB / 0.5597 GB, free: 4.855 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.423e-05/0.3374, allocations: 30.75 kB / 0.5598 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.366e-05/0.3374, allocations: 0.9375 kB / 0.5598 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.373e-05/0.3375, allocations: 110.5 kB / 0.5599 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.545e-06/0.3375, allocations: 384 / 0.5599 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.3375, allocations: 4.375 kB / 0.5599 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.193e-05/0.3376, allocations: 33.81 kB / 0.5599 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.3376, allocations: 4 kB / 0.5599 GB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.064e-06/0.3377, allocations: 0 / 0.5599 GB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.3377, allocations: 0 / 0.5599 GB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.637e-05/0.3377, allocations: 4 kB / 0.5599 GB, free: 4.633 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000131/0.3378, allocations: 112.8 kB / 0.56 GB, free: 4.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.94e-05/0.3379, allocations: 26.55 kB / 0.56 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.577e-05/0.3379, allocations: 4.859 kB / 0.56 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.625e-06/0.3379, allocations: 3.984 kB / 0.56 GB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.3379, allocations: 64.2 kB / 0.5601 GB, free: 4.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3379, allocations: 0 / 0.5601 GB, free: 4.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001621/0.3381, allocations: 59.47 kB / 0.5602 GB, free: 4.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.3382, allocations: 85.11 kB / 0.5602 GB, free: 4.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.889e-05/0.3382, allocations: 93.81 kB / 0.5603 GB, free: 4.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.3382, allocations: 29.69 kB / 0.5604 GB, free: 4.047 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.144e-05/0.3383, allocations: 84.08 kB / 0.5604 GB, free: 3.961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.3383, allocations: 128 / 0.5604 GB, free: 3.961 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/0.3383, allocations: 17.72 kB / 0.5605 GB, free: 3.938 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.3384, allocations: 310.8 kB / 0.5608 GB, free: 3.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.19e-05/0.3385, allocations: 4 kB / 0.5608 GB, free: 3.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.17e-06/0.3385, allocations: 0 / 0.5608 GB, free: 3.621 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.68e-05/0.3385, allocations: 64.27 kB / 0.5608 GB, free: 3.543 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3385, allocations: 0 / 0.5608 GB, free: 3.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.301e-05/0.3386, allocations: 63.39 kB / 0.5609 GB, free: 3.469 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.3386, allocations: 37.73 kB / 0.5609 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.3386, allocations: 0 / 0.5609 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.3387, allocations: 4 kB / 0.5609 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.3387, allocations: 0 / 0.5609 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.3387, allocations: 3.938 kB / 0.5609 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.462e-05/0.3387, allocations: 3.938 kB / 0.5609 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-06/0.3387, allocations: 0 / 0.5609 GB, free: 3.414 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 9.59e-05/0.3388, allocations: 143.5 kB / 0.5611 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.988e-05/0.3388, allocations: 7.938 kB / 0.5611 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.165e-05/0.3388, allocations: 7 kB / 0.5611 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3388, allocations: 0 / 0.5611 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3388, allocations: 0 / 0.5611 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.3388, allocations: 0 / 0.5611 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.749e-05/0.3389, allocations: 116.8 kB / 0.5612 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3389, allocations: 0 / 0.5612 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.369e-06/0.3389, allocations: 7.969 kB / 0.5612 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.3389, allocations: 3.938 kB / 0.5612 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.3389, allocations: 4 kB / 0.5612 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.3389, allocations: 0 / 0.5612 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3389, allocations: 4 kB / 0.5612 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001058/0.339, allocations: 86.84 kB / 0.5613 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.968e-06/0.3391, allocations: 11.92 kB / 0.5613 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.018e-05/0.3391, allocations: 0 / 0.5613 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-06/0.3391, allocations: 3.938 kB / 0.5613 GB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.293e-05/0.3391, allocations: 0 / 0.5613 GB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-06/0.3391, allocations: 0 / 0.5613 GB, free: 2.941 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.455e-05/0.3391, allocations: 75.28 kB / 0.5614 GB, free: 2.867 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3391, allocations: 8.031 kB / 0.5614 GB, free: 2.859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.3393, allocations: 15.94 kB / 0.5614 GB, free: 2.844 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.0006237/0.34, allocations: 0.6708 MB / 0.5621 GB, free: 2.141 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.3401, allocations: 67.34 kB / 0.5621 GB, free: 2.062 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3401, allocations: 0 / 0.5621 GB, free: 2.062 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.659e-05/0.3401, allocations: 55.41 kB / 0.5622 GB, free: 1.996 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.3403, allocations: 6.328 kB / 0.5622 GB, free: 1.992 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003116/0.3406, allocations: 118.7 kB / 0.5623 GB, free: 1.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.3409, allocations: 0.6729 MB / 0.563 GB, free: 1.137 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.356e-06/0.3409, allocations: 3.984 kB / 0.563 GB, free: 1.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.562e-05/0.3409, allocations: 11.56 kB / 0.563 GB, free: 1.121 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3409, allocations: 0 / 0.563 GB, free: 1.121 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.3676, allocations: 1.59 MB / 0.5645 GB, free: 15.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.25, allocations: 17.69 kB / 0.5645 GB, free: 15.65 MB / 414.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.174885946005816]