Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00167/0.00167, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001919/0.001919, allocations: 200.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 247 MB, free: 10.47 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.2317/0.2317, allocations: 46.12 MB / 344.3 MB, free: 11.48 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.002253/0.002253, allocations: 75.88 kB / 480.9 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.326, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001656/0.3277, allocations: 492.5 kB / 0.531 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006397/0.3284, allocations: 249.6 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.282e-05/0.3284, allocations: 1.344 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.509e-05/0.3284, allocations: 0 / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.285e-06/0.3285, allocations: 7.875 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003352/0.3288, allocations: 51.75 kB / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.154e-05/0.3289, allocations: 6.281 kB / 0.5314 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.355e-05/0.3289, allocations: 5.078 kB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.466e-05/0.3289, allocations: 4 kB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.223e-05/0.329, allocations: 1.125 kB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.195e-06/0.329, allocations: 0 / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001522/0.3291, allocations: 65.78 kB / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.115e-06/0.3292, allocations: 0 / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.965e-05/0.3292, allocations: 0 / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.3293, allocations: 54.05 kB / 0.5315 GB, free: 12.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.3293, allocations: 0 / 0.5315 GB, free: 12.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3293, allocations: 3.938 kB / 0.5315 GB, free: 12.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.3294, allocations: 1.5 kB / 0.5315 GB, free: 12.73 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.000389/0.3297, allocations: 360.5 kB / 0.5318 GB, free: 12.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.3298, allocations: 9.375 kB / 0.5318 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.907e-05/0.3298, allocations: 32 kB / 0.5319 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.324e-05/0.3299, allocations: 0.9375 kB / 0.5319 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.33, allocations: 169.9 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.33, allocations: 384 / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-06/0.33, allocations: 1.812 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.751e-05/0.3301, allocations: 35.47 kB / 0.5321 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.3301, allocations: 5.531 kB / 0.5321 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.3302, allocations: 4 kB / 0.5321 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.3302, allocations: 3.938 kB / 0.5321 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.013e-05/0.3302, allocations: 1.656 kB / 0.5321 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001809/0.3304, allocations: 146.9 kB / 0.5322 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.575e-05/0.3304, allocations: 19.88 kB / 0.5322 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.539e-05/0.3305, allocations: 6.141 kB / 0.5322 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-06/0.3305, allocations: 1.5 kB / 0.5322 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.712e-05/0.3305, allocations: 65.48 kB / 0.5323 GB, free: 11.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.3306, allocations: 0 / 0.5323 GB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001971/0.3308, allocations: 70.52 kB / 0.5324 GB, free: 11.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.3308, allocations: 78.27 kB / 0.5324 GB, free: 11.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.319e-05/0.3309, allocations: 93.81 kB / 0.5325 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.3309, allocations: 25.7 kB / 0.5326 GB, free: 11.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.645e-05/0.331, allocations: 81.48 kB / 0.5326 GB, free: 11.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.251e-05/0.331, allocations: 0 / 0.5326 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.438e-05/0.331, allocations: 20.72 kB / 0.5327 GB, free: 11.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3312, allocations: 310.8 kB / 0.533 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.143e-05/0.3312, allocations: 1.312 kB / 0.533 GB, free: 11.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.328e-06/0.3312, allocations: 1.125 kB / 0.533 GB, free: 11.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.478e-05/0.3313, allocations: 71.38 kB / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3313, allocations: 0 / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.574e-05/0.3314, allocations: 59.03 kB / 0.5331 GB, free: 10.87 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.764e-05/0.3314, allocations: 30.55 kB / 0.5331 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3314, allocations: 9.5 kB / 0.5331 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.3315, allocations: 0 / 0.5331 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.3315, allocations: 0 / 0.5331 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3315, allocations: 0 / 0.5331 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.541e-05/0.3315, allocations: 1.469 kB / 0.5331 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.397e-06/0.3315, allocations: 4 kB / 0.5331 GB, free: 10.82 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.0001126/0.3316, allocations: 146.3 kB / 0.5333 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-06/0.3316, allocations: 0.6875 kB / 0.5333 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.189e-05/0.3317, allocations: 8.125 kB / 0.5333 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3317, allocations: 4 kB / 0.5333 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3317, allocations: 0 / 0.5333 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3317, allocations: 5.25 kB / 0.5333 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.3318, allocations: 147.1 kB / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3318, allocations: 0 / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.3318, allocations: 0 / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.3318, allocations: 1.656 kB / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.3318, allocations: 3.938 kB / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.3319, allocations: 0 / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3319, allocations: 1.438 kB / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.332, allocations: 93.58 kB / 0.5335 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.258e-05/0.332, allocations: 81.05 kB / 0.5336 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.477e-05/0.332, allocations: 5.406 kB / 0.5336 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.777e-06/0.3321, allocations: 1.5 kB / 0.5336 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.017e-05/0.3321, allocations: 0 / 0.5336 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.3321, allocations: 1.469 kB / 0.5336 GB, free: 10.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.419e-05/0.3321, allocations: 75.28 kB / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3321, allocations: 4.031 kB / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000228/0.3324, allocations: 26.77 kB / 0.5337 GB, free: 10.16 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.0009875/0.3334, allocations: 0.7994 MB / 0.5345 GB, free: 9.441 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.3335, allocations: 56.53 kB / 0.5345 GB, free: 9.379 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3335, allocations: 0 / 0.5345 GB, free: 9.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.347e-05/0.3335, allocations: 59.38 kB / 0.5346 GB, free: 9.312 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.3337, allocations: 1.156 kB / 0.5346 GB, free: 9.312 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000296/0.334, allocations: 124.1 kB / 0.5347 GB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.3343, allocations: 0.6748 MB / 0.5354 GB, free: 8.465 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.062e-06/0.3343, allocations: 0 / 0.5354 GB, free: 8.465 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.854e-05/0.3343, allocations: 7.438 kB / 0.5354 GB, free: 8.457 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3343, allocations: 2.094 kB / 0.5354 GB, free: 8.457 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02454/0.3589, allocations: 1.62 MB / 0.537 GB, free: 7.512 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.221/8.58, allocations: 8.547 kB / 0.537 GB, free: 7.508 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe 2>&1)