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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001257/0.001257, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001349/0.001349, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.227/0.227, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB 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.002203/0.002203, allocations: 84.16 kB / 480.9 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3262, allocations: 62.45 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.002084/0.3283, allocations: 496.6 kB / 0.5311 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003229/0.3316, allocations: 1.64 MB / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.343e-05/0.3316, allocations: 2 kB / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.654e-05/0.3317, allocations: 0 / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.192e-06/0.3317, allocations: 0 / 0.5327 GB, free: 11.73 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.0008435/0.3325, allocations: 155.9 kB / 0.5328 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.73e-05/0.3326, allocations: 5.281 kB / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.746e-05/0.3327, allocations: 5.328 kB / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.696e-05/0.3327, allocations: 13.2 kB / 0.5328 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.58e-05/0.3327, allocations: 4 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.456e-06/0.3327, allocations: 1.312 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004513/0.3332, allocations: 113.9 kB / 0.533 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.175e-06/0.3332, allocations: 1 kB / 0.533 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.322e-05/0.3333, allocations: 6.312 kB / 0.533 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.3334, allocations: 33.52 kB / 0.533 GB, free: 11.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3334, allocations: 4 kB / 0.533 GB, free: 11.54 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3334, allocations: 0 / 0.533 GB, free: 11.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.3334, allocations: 0 / 0.533 GB, free: 11.54 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.0004132/0.3339, allocations: 351.6 kB / 0.5333 GB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.3339, allocations: 9.625 kB / 0.5333 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.137e-05/0.334, allocations: 32.12 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.567e-05/0.334, allocations: 0.9375 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.3342, allocations: 160.4 kB / 0.5335 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.3342, allocations: 5.688 kB / 0.5335 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.842e-06/0.3342, allocations: 4.375 kB / 0.5335 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.808e-05/0.3343, allocations: 36.52 kB / 0.5336 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.3343, allocations: 0 / 0.5336 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.3343, allocations: 1.375 kB / 0.5336 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.3344, allocations: 3.984 kB / 0.5336 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.252e-05/0.3344, allocations: 5.359 kB / 0.5336 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001885/0.3346, allocations: 143.1 kB / 0.5337 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.963e-05/0.3346, allocations: 19.95 kB / 0.5337 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.337e-05/0.3347, allocations: 14.17 kB / 0.5337 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.3347, allocations: 5.312 kB / 0.5338 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.228e-05/0.3348, allocations: 61.58 kB / 0.5338 GB, free: 10.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.473e-06/0.3348, allocations: 0 / 0.5338 GB, free: 10.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002053/0.335, allocations: 62.27 kB / 0.5339 GB, free: 10.49 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.067e-05/0.3351, allocations: 82.48 kB / 0.5339 GB, free: 10.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.455e-05/0.3352, allocations: 93.81 kB / 0.534 GB, free: 10.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.3352, allocations: 29.83 kB / 0.5341 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.648e-05/0.3353, allocations: 81.52 kB / 0.5341 GB, free: 10.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.3353, allocations: 0 / 0.5341 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.824e-05/0.3353, allocations: 12.47 kB / 0.5342 GB, free: 10.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.3355, allocations: 314.8 kB / 0.5345 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.35e-05/0.3356, allocations: 1.375 kB / 0.5345 GB, free: 9.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.059e-05/0.3356, allocations: 5.312 kB / 0.5345 GB, free: 9.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.581e-05/0.3357, allocations: 67.08 kB / 0.5345 GB, free: 9.762 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3357, allocations: 0 / 0.5345 GB, free: 9.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000104/0.3358, allocations: 62.27 kB / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.448e-05/0.3359, allocations: 35.14 kB / 0.5346 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.3359, allocations: 1.375 kB / 0.5346 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.3359, allocations: 0 / 0.5346 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.3359, allocations: 0 / 0.5346 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3359, allocations: 1.375 kB / 0.5346 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.969e-05/0.3359, allocations: 0 / 0.5346 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.515e-06/0.336, allocations: 1.375 kB / 0.5346 GB, free: 9.66 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 0.0001431/0.3361, allocations: 146.3 kB / 0.5348 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.526e-05/0.3361, allocations: 3.938 kB / 0.5348 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.578e-05/0.3362, allocations: 12.42 kB / 0.5348 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3362, allocations: 3.938 kB / 0.5348 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3362, allocations: 0 / 0.5348 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3362, allocations: 0 / 0.5348 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001644/0.3364, allocations: 148.4 kB / 0.5349 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3364, allocations: 0 / 0.5349 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-07/0.3364, allocations: 0 / 0.5349 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.3364, allocations: 3.938 kB / 0.5349 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.3364, allocations: 5.375 kB / 0.5349 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3364, allocations: 0 / 0.5349 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3364, allocations: 5.359 kB / 0.5349 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001271/0.3366, allocations: 85.84 kB / 0.535 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.585e-05/0.3367, allocations: 81.05 kB / 0.5351 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.3367, allocations: 5.359 kB / 0.5351 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.223e-05/0.3367, allocations: 0 / 0.5351 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.186e-05/0.3367, allocations: 5.406 kB / 0.5351 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.3367, allocations: 5.312 kB / 0.5351 GB, free: 9.078 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.452e-05/0.3368, allocations: 75.28 kB / 0.5352 GB, free: 9.004 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.515e-06/0.3368, allocations: 0 / 0.5352 GB, free: 9.004 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003437/0.3372, allocations: 21.62 kB / 0.5352 GB, free: 8.996 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.0007898/0.338, allocations: 0.6762 MB / 0.5359 GB, free: 8.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001168/0.3381, allocations: 60.91 kB / 0.5359 GB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3381, allocations: 0 / 0.5359 GB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.375e-05/0.3382, allocations: 58.09 kB / 0.536 GB, free: 8.203 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001848/0.3384, allocations: 2.75 kB / 0.536 GB, free: 8.203 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004055/0.3388, allocations: 119.2 kB / 0.5361 GB, free: 8.059 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.3392, allocations: 0.6703 MB / 0.5368 GB, free: 7.363 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.831e-06/0.3392, allocations: 3.938 kB / 0.5368 GB, free: 7.359 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.735e-05/0.3392, allocations: 8.812 kB / 0.5368 GB, free: 7.352 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3392, allocations: 0 / 0.5368 GB, free: 7.352 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/0.3653, allocations: 1.478 MB / 0.5382 GB, free: 6.484 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.779/8.144, allocations: 3.344 kB / 0.5382 GB, free: 6.484 MB / 398.1 MB (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)