Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.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.TestVectors,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestVectors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestVectors,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestVectors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001698/0.001698, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002003/0.002003, allocations: 206 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.41/1.41, allocations: 227.4 MB / 247 MB, free: 10.41 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.2236/0.2236, allocations: 46.11 MB / 344.4 MB, free: 11.44 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.002278/0.002278, allocations: 83.86 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3095, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001665/0.3112, allocations: 0.4908 MB / 0.5311 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.3126, allocations: 0.761 MB / 0.5318 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.499e-05/0.3126, allocations: 3.938 kB / 0.5318 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.849e-06/0.3127, allocations: 0 / 0.5318 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.36e-06/0.3127, allocations: 0 / 0.5318 GB, free: 12.43 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:612:3-661:14:writable] Warning: Pure function 'ModelicaTest.Math.Vectors' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001683/0.3144, allocations: 0.657 MB / 0.5324 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.917e-05/0.3144, allocations: 5.047 kB / 0.5325 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.934e-05/0.3145, allocations: 1.062 kB / 0.5325 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.685e-05/0.3145, allocations: 1.094 kB / 0.5325 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.471e-05/0.3145, allocations: 0 / 0.5325 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.32e-06/0.3145, allocations: 1.219 kB / 0.5325 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006984/0.3152, allocations: 395 kB / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.805e-06/0.3152, allocations: 0 / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.018e-05/0.3153, allocations: 1.406 kB / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004925/0.3158, allocations: 352.2 kB / 0.5332 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3158, allocations: 0 / 0.5332 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3158, allocations: 0 / 0.5332 GB, free: 11.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.3158, allocations: 1.375 kB / 0.5332 GB, free: 11.57 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.000431/0.3162, allocations: 387.8 kB / 0.5335 GB, free: 11.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.3163, allocations: 9.625 kB / 0.5335 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.541e-05/0.3163, allocations: 36.12 kB / 0.5336 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.112e-05/0.3163, allocations: 4.938 kB / 0.5336 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.3165, allocations: 168.3 kB / 0.5337 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-06/0.3165, allocations: 1.75 kB / 0.5337 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.956e-06/0.3165, allocations: 384 / 0.5338 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.786e-05/0.3166, allocations: 29.02 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3166, allocations: 3.938 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.3166, allocations: 1.375 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.3166, allocations: 0 / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.576e-05/0.3166, allocations: 1.375 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001538/0.3168, allocations: 147.1 kB / 0.5339 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.265e-05/0.3168, allocations: 31.81 kB / 0.534 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.57e-05/0.3169, allocations: 10.17 kB / 0.534 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.107e-06/0.3169, allocations: 1.375 kB / 0.534 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.007e-05/0.3169, allocations: 56.27 kB / 0.534 GB, free: 10.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3169, allocations: 1.375 kB / 0.534 GB, free: 10.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001628/0.3171, allocations: 66.33 kB / 0.5341 GB, free: 10.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.3172, allocations: 82.48 kB / 0.5342 GB, free: 10.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.092e-05/0.3172, allocations: 97.81 kB / 0.5343 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.3173, allocations: 29.64 kB / 0.5343 GB, free: 10.24 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.258e-05/0.3173, allocations: 80.14 kB / 0.5344 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/0.3173, allocations: 5.359 kB / 0.5344 GB, free: 10.15 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.779e-05/0.3174, allocations: 11.09 kB / 0.5344 GB, free: 10.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.3175, allocations: 312.2 kB / 0.5347 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.197e-05/0.3175, allocations: 5.375 kB / 0.5347 GB, free: 9.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.27e-06/0.3175, allocations: 0 / 0.5347 GB, free: 9.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.299e-05/0.3176, allocations: 68.38 kB / 0.5347 GB, free: 9.742 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.3176, allocations: 0 / 0.5347 GB, free: 9.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.031e-05/0.3177, allocations: 62.28 kB / 0.5348 GB, free: 9.676 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/0.3177, allocations: 33.7 kB / 0.5348 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3177, allocations: 3.938 kB / 0.5348 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.3177, allocations: 1.375 kB / 0.5348 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.755e-06/0.3177, allocations: 3.938 kB / 0.5348 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.3178, allocations: 4.094 kB / 0.5348 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.467e-05/0.3178, allocations: 1.375 kB / 0.5349 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.3178, allocations: 3.984 kB / 0.5349 GB, free: 9.629 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 9.589e-05/0.3179, allocations: 138.2 kB / 0.535 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-06/0.3179, allocations: 1.375 kB / 0.535 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.459e-05/0.3179, allocations: 11.06 kB / 0.535 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.3179, allocations: 0 / 0.535 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3179, allocations: 1.375 kB / 0.535 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.3179, allocations: 0 / 0.535 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.3181, allocations: 151 kB / 0.5351 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3181, allocations: 0 / 0.5351 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.22e-07/0.3181, allocations: 0 / 0.5351 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.3181, allocations: 1.375 kB / 0.5351 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.3181, allocations: 3.938 kB / 0.5351 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3181, allocations: 5.312 kB / 0.5352 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3181, allocations: 0 / 0.5352 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.483e-05/0.3182, allocations: 89.83 kB / 0.5352 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.891e-05/0.3183, allocations: 81.14 kB / 0.5353 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.3183, allocations: 9.25 kB / 0.5353 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-06/0.3183, allocations: 1.375 kB / 0.5353 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.167e-06/0.3183, allocations: 0 / 0.5353 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.3183, allocations: 5.312 kB / 0.5353 GB, free: 9.059 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.277e-05/0.3184, allocations: 75.28 kB / 0.5354 GB, free: 8.984 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3184, allocations: 0 / 0.5354 GB, free: 8.984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003343/0.3187, allocations: 82.86 kB / 0.5355 GB, free: 8.961 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.0008041/0.3195, allocations: 0.7531 MB / 0.5362 GB, free: 8.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.326e-05/0.3196, allocations: 64.83 kB / 0.5363 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3196, allocations: 0 / 0.5363 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.141e-05/0.3197, allocations: 55.53 kB / 0.5363 GB, free: 8.129 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001132/0.3198, allocations: 5.5 kB / 0.5363 GB, free: 8.125 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003318/0.3201, allocations: 139.1 kB / 0.5365 GB, free: 7.969 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.3205, allocations: 0.6742 MB / 0.5371 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.772e-06/0.3205, allocations: 1.375 kB / 0.5371 GB, free: 7.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.386e-05/0.3205, allocations: 7.438 kB / 0.5371 GB, free: 7.262 MB / 398.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3205, allocations: 0 / 0.5371 GB, free: 7.262 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02369/0.3442, allocations: 2.794 MB / 0.5399 GB, free: 5.715 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.094/8.438, allocations: 11.62 kB / 0.5399 GB, free: 5.707 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestVectors_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestVectors.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.pipe 2>&1)