Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001171/0.001171, allocations: 105 kB / 19.74 MB, free: 2.566 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.001296/0.001296, allocations: 218.2 kB / 22.92 MB, free: 5.535 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.275/1.275, allocations: 230.2 MB / 256.2 MB, free: 8.734 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.1957/0.1957, allocations: 46.88 MB / 359.3 MB, free: 4.965 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-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestScalarFunctions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 75.88 kB / 0.494 GB, free: 9.113 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.263, allocations: 65.99 MB / 0.5584 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001387/0.2644, allocations: 489.1 kB / 0.5589 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.2665, allocations: 1.668 MB / 0.5605 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.901e-05/0.2665, allocations: 0 / 0.5605 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.358e-05/0.2665, allocations: 0 / 0.5605 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.098e-06/0.2665, allocations: 0 / 0.5605 GB, free: 3.035 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.000578/0.2671, allocations: 166.9 kB / 0.5607 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.251e-05/0.2671, allocations: 7.938 kB / 0.5607 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.412e-05/0.2672, allocations: 3.984 kB / 0.5607 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.291e-05/0.2672, allocations: 0 / 0.5607 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.053e-05/0.2672, allocations: 0 / 0.5607 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.202e-06/0.2672, allocations: 4 kB / 0.5607 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003455/0.2675, allocations: 123.8 kB / 0.5608 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-06/0.2675, allocations: 0 / 0.5608 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.411e-05/0.2676, allocations: 0 / 0.5608 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.2677, allocations: 41.8 kB / 0.5608 GB, free: 2.699 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2677, allocations: 3.984 kB / 0.5608 GB, free: 2.695 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2677, allocations: 0 / 0.5608 GB, free: 2.695 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.2677, allocations: 0 / 0.5608 GB, free: 2.695 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.0003074/0.268, allocations: 349.1 kB / 0.5612 GB, free: 2.301 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.268, allocations: 8.031 kB / 0.5612 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.432e-05/0.268, allocations: 30.75 kB / 0.5612 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.848e-05/0.2681, allocations: 4.938 kB / 0.5612 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.884e-05/0.2682, allocations: 164.4 kB / 0.5614 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.402e-06/0.2682, allocations: 4.375 kB / 0.5614 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.807e-06/0.2682, allocations: 384 / 0.5614 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.81e-05/0.2683, allocations: 37.83 kB / 0.5614 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.2683, allocations: 0 / 0.5614 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-06/0.2683, allocations: 0 / 0.5614 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.407e-06/0.2683, allocations: 0 / 0.5614 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.481e-05/0.2683, allocations: 3.938 kB / 0.5614 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001359/0.2684, allocations: 149.7 kB / 0.5615 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.918e-05/0.2685, allocations: 22.52 kB / 0.5616 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.236e-05/0.2685, allocations: 4.859 kB / 0.5616 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.049e-06/0.2685, allocations: 4.078 kB / 0.5616 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.743e-05/0.2685, allocations: 68.2 kB / 0.5616 GB, free: 1.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.2685, allocations: 0 / 0.5616 GB, free: 1.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000145/0.2687, allocations: 67.33 kB / 0.5617 GB, free: 1.602 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.2687, allocations: 77.11 kB / 0.5618 GB, free: 1.508 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.361e-05/0.2688, allocations: 97.94 kB / 0.5619 GB, free: 1.402 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.2688, allocations: 25.7 kB / 0.5619 GB, free: 1.371 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.549e-05/0.2688, allocations: 80.14 kB / 0.562 GB, free: 1.289 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.2688, allocations: 0 / 0.562 GB, free: 1.289 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.2689, allocations: 17.72 kB / 0.562 GB, free: 1.266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.269, allocations: 310.8 kB / 0.5623 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.875e-06/0.269, allocations: 0 / 0.5623 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.156e-06/0.269, allocations: 7.984 kB / 0.5623 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.765e-05/0.269, allocations: 60.33 kB / 0.5624 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.269, allocations: 4 kB / 0.5624 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.581e-05/0.2691, allocations: 63.34 kB / 0.5624 GB, free: 0.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.165e-05/0.2691, allocations: 37.64 kB / 0.5625 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.2691, allocations: 0 / 0.5625 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.2692, allocations: 3.984 kB / 0.5625 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.2692, allocations: 0 / 0.5625 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.2692, allocations: 0 / 0.5625 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.329e-05/0.2692, allocations: 3.938 kB / 0.5625 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5e-06/0.2692, allocations: 0 / 0.5625 GB, free: 0.7422 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 7.865e-05/0.2693, allocations: 139.6 kB / 0.5626 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.156e-05/0.2693, allocations: 3.938 kB / 0.5626 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.701e-06/0.2693, allocations: 3.125 kB / 0.5626 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.2693, allocations: 4 kB / 0.5626 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2693, allocations: 0 / 0.5626 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-06/0.2693, allocations: 0 / 0.5626 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.72e-05/0.2694, allocations: 145.7 kB / 0.5627 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.2694, allocations: 4 kB / 0.5627 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.8e-07/0.2694, allocations: 0 / 0.5627 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.2694, allocations: 7.938 kB / 0.5628 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.2694, allocations: 8 kB / 0.5628 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.2694, allocations: 0 / 0.5628 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2694, allocations: 0 / 0.5628 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.252e-05/0.2695, allocations: 94.77 kB / 0.5629 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.846e-05/0.2695, allocations: 81.05 kB / 0.5629 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.427e-06/0.2695, allocations: 0 / 0.5629 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.714e-06/0.2695, allocations: 32 / 0.5629 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.905e-06/0.2695, allocations: 7.938 kB / 0.5629 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.2696, allocations: 4 kB / 0.5629 GB, free: 148 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.268e-05/0.2696, allocations: 79.28 kB / 0.563 GB, free: 68 kB / 398.1 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2696, allocations: 0 / 0.563 GB, free: 68 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001893/0.2698, allocations: 19.92 kB / 0.563 GB, free: 48 kB / 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.0005427/0.2703, allocations: 0.6818 MB / 0.5637 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.395e-05/0.2704, allocations: 59.39 kB / 0.5638 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2704, allocations: 0 / 0.5638 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.138e-05/0.2704, allocations: 55.41 kB / 0.5638 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.2706, allocations: 0 / 0.5638 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002694/0.2708, allocations: 130.9 kB / 0.5639 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.2711, allocations: 0.669 MB / 0.5646 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.127e-06/0.2711, allocations: 0 / 0.5646 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.339e-05/0.2711, allocations: 7.438 kB / 0.5646 GB, free: 14.33 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2711, allocations: 4 kB / 0.5646 GB, free: 14.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02087/0.292, allocations: 1.463 MB / 0.566 GB, free: 12.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.854/7.146, allocations: 17.3 kB / 0.566 GB, free: 12.91 MB / 414.1 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestScalarFunctions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.561857541004429]