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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001922/0.001922, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002498/0.002498, allocations: 215.5 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2298/0.2298, allocations: 46.93 MB / 360.8 MB, free: 4.18 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002469/0.002469, allocations: 75.88 kB / 0.4962 GB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3223, allocations: 66.08 MB / 0.5607 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001595/0.3239, allocations: 489.1 kB / 0.5612 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.3263, allocations: 1.676 MB / 0.5628 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.409e-05/0.3263, allocations: 0 / 0.5628 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.222e-05/0.3263, allocations: 0 / 0.5628 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.3e-06/0.3263, allocations: 0 / 0.5628 GB, free: 2.148 MB / 398.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.0006804/0.327, allocations: 167.4 kB / 0.563 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.996e-05/0.327, allocations: 7.984 kB / 0.563 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.857e-05/0.3271, allocations: 3.938 kB / 0.563 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.403e-05/0.3271, allocations: 0 / 0.563 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.918e-05/0.3271, allocations: 0 / 0.563 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.262e-06/0.3271, allocations: 0 / 0.563 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00036/0.3275, allocations: 127.8 kB / 0.5631 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.65e-06/0.3275, allocations: 0 / 0.5631 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.867e-05/0.3275, allocations: 0 / 0.5631 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.3276, allocations: 45.72 kB / 0.5632 GB, free: 1.805 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3276, allocations: 0 / 0.5632 GB, free: 1.805 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3276, allocations: 0 / 0.5632 GB, free: 1.805 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.3276, allocations: 0 / 0.5632 GB, free: 1.805 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.0002992/0.3279, allocations: 272.1 kB / 0.5634 GB, free: 1.504 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.328, allocations: 8.031 kB / 0.5634 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.662e-05/0.328, allocations: 38.67 kB / 0.5635 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.195e-05/0.328, allocations: 4.938 kB / 0.5635 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.162e-05/0.3281, allocations: 102.5 kB / 0.5636 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.3281, allocations: 384 / 0.5636 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.61e-06/0.3281, allocations: 4.375 kB / 0.5636 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.163e-05/0.3282, allocations: 33.83 kB / 0.5636 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.3282, allocations: 0 / 0.5636 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.683e-06/0.3282, allocations: 0 / 0.5636 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.337e-06/0.3282, allocations: 0 / 0.5636 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.659e-05/0.3282, allocations: 7.938 kB / 0.5636 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001336/0.3283, allocations: 120.8 kB / 0.5637 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.285e-05/0.3284, allocations: 18.58 kB / 0.5637 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.679e-05/0.3284, allocations: 8.953 kB / 0.5637 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.953e-06/0.3284, allocations: 0 / 0.5637 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.299e-05/0.3285, allocations: 64.2 kB / 0.5638 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3285, allocations: 0 / 0.5638 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001687/0.3286, allocations: 71.31 kB / 0.5639 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.3287, allocations: 77.11 kB / 0.564 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.053e-05/0.3287, allocations: 93.81 kB / 0.564 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.3288, allocations: 29.83 kB / 0.5641 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.604e-05/0.3288, allocations: 84.14 kB / 0.5642 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.3288, allocations: 0 / 0.5642 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.732e-05/0.3289, allocations: 13.72 kB / 0.5642 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.329, allocations: 310.8 kB / 0.5645 GB, free: 268 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.34e-05/0.329, allocations: 8 kB / 0.5645 GB, free: 260 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.829e-06/0.329, allocations: 0 / 0.5645 GB, free: 260 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.578e-05/0.3291, allocations: 68.31 kB / 0.5645 GB, free: 176 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3291, allocations: 3.938 kB / 0.5645 GB, free: 172 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.055e-05/0.3291, allocations: 63.41 kB / 0.5646 GB, free: 96 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.19e-05/0.3292, allocations: 33.64 kB / 0.5646 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.3292, allocations: 0 / 0.5646 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.3292, allocations: 0 / 0.5646 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-06/0.3292, allocations: 3.984 kB / 0.5646 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.536e-06/0.3292, allocations: 0 / 0.5646 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.682e-05/0.3292, allocations: 4 kB / 0.5646 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.3292, allocations: 3.984 kB / 0.5646 GB, free: 44 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 0.0001097/0.3293, allocations: 143.5 kB / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.287e-05/0.3293, allocations: 7.938 kB / 0.5648 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.618e-06/0.3294, allocations: 3 kB / 0.5648 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3294, allocations: 0 / 0.5648 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.3294, allocations: 0 / 0.5648 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.3294, allocations: 0 / 0.5648 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.3295, allocations: 116.8 kB / 0.5649 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3295, allocations: 8 kB / 0.5649 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3295, allocations: 0 / 0.5649 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/0.3295, allocations: 7.938 kB / 0.5649 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.3295, allocations: 4 kB / 0.5649 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.3295, allocations: 0 / 0.5649 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3295, allocations: 3.938 kB / 0.5649 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.874e-05/0.3296, allocations: 90.83 kB / 0.565 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.59e-06/0.3296, allocations: 3.938 kB / 0.565 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.095e-05/0.3296, allocations: 0 / 0.565 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-06/0.3296, allocations: 4 kB / 0.565 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.268e-06/0.3296, allocations: 4.031 kB / 0.565 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.3296, allocations: 0 / 0.565 GB, free: 15.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.321e-05/0.3297, allocations: 75.28 kB / 0.5651 GB, free: 15.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3297, allocations: 0 / 0.5651 GB, free: 15.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.3299, allocations: 23.92 kB / 0.5651 GB, free: 15.47 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.0006268/0.3305, allocations: 0.6681 MB / 0.5658 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001037/0.3306, allocations: 59.39 kB / 0.5658 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3306, allocations: 3.938 kB / 0.5658 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.161e-05/0.3307, allocations: 55.41 kB / 0.5659 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.3308, allocations: 6.391 kB / 0.5659 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003083/0.3311, allocations: 126.8 kB / 0.566 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.3314, allocations: 0.669 MB / 0.5667 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.701e-06/0.3314, allocations: 0 / 0.5667 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.252e-05/0.3314, allocations: 7.438 kB / 0.5667 GB, free: 13.76 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3314, allocations: 3.938 kB / 0.5667 GB, free: 13.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.3562, allocations: 1.607 MB / 0.5682 GB, free: 12.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.12, allocations: 0 / 0.5682 GB, free: 12.25 MB / 414.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/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_trunk_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.992329173022881]