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.001676/0.001676, allocations: 109 kB / 21.23 MB, free: 0.6641 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.00224/0.00224, allocations: 213.6 kB / 24.54 MB, free: 4.02 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.477/1.477, allocations: 230.5 MB / 258.2 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] 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.2218/0.2218, allocations: 46.93 MB / 361.6 MB, free: 4.156 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.002309/0.002309, allocations: 87.88 kB / 0.497 GB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2984, allocations: 66.07 MB / 0.5615 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.002054/0.3005, allocations: 497 kB / 0.562 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003192/0.3037, allocations: 1.66 MB / 0.5636 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.493e-05/0.3037, allocations: 0 / 0.5636 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.267e-05/0.3037, allocations: 0 / 0.5636 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.621e-06/0.3037, allocations: 4 kB / 0.5636 GB, free: 2.109 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.0008993/0.3046, allocations: 163.4 kB / 0.5637 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.896e-05/0.3047, allocations: 7.938 kB / 0.5638 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.824e-05/0.3047, allocations: 0 / 0.5638 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.857e-05/0.3047, allocations: 0 / 0.5638 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.125e-05/0.3048, allocations: 4 kB / 0.5638 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.19e-05/0.3048, allocations: 7.984 kB / 0.5638 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005157/0.3053, allocations: 119.8 kB / 0.5639 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.575e-06/0.3053, allocations: 0 / 0.5639 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.495e-05/0.3053, allocations: 3.984 kB / 0.5639 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.3055, allocations: 37.92 kB / 0.5639 GB, free: 1.773 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3055, allocations: 0 / 0.5639 GB, free: 1.773 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3055, allocations: 0 / 0.5639 GB, free: 1.773 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.3055, allocations: 0 / 0.5639 GB, free: 1.773 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.0003826/0.3059, allocations: 280 kB / 0.5642 GB, free: 1.465 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.3059, allocations: 11.97 kB / 0.5642 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.201e-05/0.3059, allocations: 34.75 kB / 0.5642 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.917e-05/0.306, allocations: 0.9375 kB / 0.5642 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.718e-05/0.3061, allocations: 102.5 kB / 0.5643 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.3061, allocations: 384 / 0.5643 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.793e-06/0.3061, allocations: 384 / 0.5643 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.516e-05/0.3062, allocations: 41.81 kB / 0.5644 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.3062, allocations: 7.984 kB / 0.5644 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.3062, allocations: 0 / 0.5644 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-06/0.3062, allocations: 0 / 0.5644 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.107e-05/0.3062, allocations: 7.938 kB / 0.5644 GB, free: 1.223 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001618/0.3064, allocations: 112.8 kB / 0.5645 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.829e-05/0.3064, allocations: 18.61 kB / 0.5645 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.857e-05/0.3065, allocations: 8.844 kB / 0.5645 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.3065, allocations: 0 / 0.5645 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.494e-05/0.3065, allocations: 68.2 kB / 0.5646 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.3065, allocations: 0 / 0.5646 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001918/0.3067, allocations: 63.41 kB / 0.5646 GB, free: 0.875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.3068, allocations: 77.11 kB / 0.5647 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.855e-05/0.3069, allocations: 101.8 kB / 0.5648 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.3069, allocations: 25.7 kB / 0.5648 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.878e-05/0.3069, allocations: 84.08 kB / 0.5649 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.307, allocations: 4 kB / 0.5649 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-05/0.307, allocations: 13.84 kB / 0.5649 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002313/0.3072, allocations: 314.8 kB / 0.5652 GB, free: 220 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.363e-05/0.3072, allocations: 4 kB / 0.5652 GB, free: 216 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.593e-06/0.3072, allocations: 0 / 0.5652 GB, free: 216 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.221e-05/0.3073, allocations: 60.27 kB / 0.5653 GB, free: 140 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3073, allocations: 3.938 kB / 0.5653 GB, free: 136 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.686e-05/0.3074, allocations: 67.39 kB / 0.5654 GB, free: 56 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.039e-05/0.3074, allocations: 37.73 kB / 0.5654 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.3075, allocations: 0 / 0.5654 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.3075, allocations: 0 / 0.5654 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.3075, allocations: 0 / 0.5654 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.3075, allocations: 4 kB / 0.5654 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.81e-05/0.3075, allocations: 0 / 0.5654 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.3075, allocations: 3.938 kB / 0.5654 GB, free: 4 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.0001872/0.3077, allocations: 139.5 kB / 0.5655 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.285e-05/0.3077, allocations: 3.938 kB / 0.5655 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.104e-05/0.3077, allocations: 7 kB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3077, allocations: 0 / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3077, allocations: 4 kB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.3077, allocations: 0 / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001219/0.3078, allocations: 120.8 kB / 0.5657 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3078, allocations: 3.984 kB / 0.5657 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.3078, allocations: 0 / 0.5657 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3078, allocations: 3.938 kB / 0.5657 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/0.3079, allocations: 0 / 0.5657 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3079, allocations: 0 / 0.5657 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3079, allocations: 3.938 kB / 0.5657 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001208/0.308, allocations: 94.83 kB / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.773e-06/0.308, allocations: 3.938 kB / 0.5658 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.308, allocations: 4 kB / 0.5658 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.216e-05/0.308, allocations: 0 / 0.5658 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.588e-06/0.308, allocations: 0 / 0.5658 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-06/0.308, allocations: 0 / 0.5658 GB, free: 15.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.563e-05/0.3081, allocations: 75.28 kB / 0.5659 GB, free: 15.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3081, allocations: 4.031 kB / 0.5659 GB, free: 15.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000336/0.3084, allocations: 19.94 kB / 0.5659 GB, free: 15.44 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.0007456/0.3091, allocations: 0.6813 MB / 0.5665 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001108/0.3093, allocations: 63.41 kB / 0.5666 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3093, allocations: 0 / 0.5666 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.099e-05/0.3093, allocations: 55.39 kB / 0.5667 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.3095, allocations: 8 kB / 0.5667 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003737/0.3099, allocations: 114.7 kB / 0.5668 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.3102, allocations: 0.6729 MB / 0.5674 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.28e-06/0.3102, allocations: 4 kB / 0.5674 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.494e-05/0.3103, allocations: 7.562 kB / 0.5674 GB, free: 13.72 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3103, allocations: 7.938 kB / 0.5674 GB, free: 13.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.3381, allocations: 1.49 MB / 0.5689 GB, free: 12.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.758/8.096, allocations: 7.922 kB / 0.5689 GB, free: 12.28 MB / 414.1 MB " [Timeout remaining time 652] (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: 10.851834818255156] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.165713542606682 8.181060695 7.872465645 Calling exit ...