Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Math_TestVectors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestVectors,fileNamePrefix="ModelicaTest_trunk_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.001248/0.001248, allocations: 122 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.001283/0.001283, allocations: 202 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.426/1.426, 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 trunk/package.mo): time 0.2335/0.2335, allocations: 46.12 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00219/0.00219, allocations: 79.86 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3398, allocations: 62.46 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001536/0.3414, allocations: 494 kB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.3429, allocations: 0.7677 MB / 0.5318 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.122e-05/0.3429, allocations: 3.938 kB / 0.5318 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.136e-05/0.3429, allocations: 1.094 kB / 0.5318 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.362e-06/0.343, allocations: 0 / 0.5318 GB, free: 12.4 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001728/0.3447, allocations: 0.6579 MB / 0.5325 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.026e-05/0.3448, allocations: 4 kB / 0.5325 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.301e-05/0.3448, allocations: 3.5 kB / 0.5325 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.526e-05/0.3448, allocations: 0 / 0.5325 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.576e-05/0.3448, allocations: 0 / 0.5325 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.17e-06/0.3448, allocations: 0 / 0.5325 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000759/0.3456, allocations: 390.5 kB / 0.5329 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.085e-06/0.3456, allocations: 0.8438 kB / 0.5329 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.904e-05/0.3457, allocations: 5.219 kB / 0.5329 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00051/0.3462, allocations: 343.6 kB / 0.5332 GB, free: 11.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3462, allocations: 1.062 kB / 0.5332 GB, free: 11.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3462, allocations: 0 / 0.5332 GB, free: 11.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.3462, allocations: 0 / 0.5332 GB, free: 11.55 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.0004513/0.3467, allocations: 393.7 kB / 0.5336 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3467, allocations: 8.281 kB / 0.5336 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.369e-05/0.3467, allocations: 36.09 kB / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.288e-05/0.3468, allocations: 0.9375 kB / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.3469, allocations: 161.8 kB / 0.5338 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.3469, allocations: 4.375 kB / 0.5338 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.3469, allocations: 1.656 kB / 0.5338 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.414e-05/0.347, allocations: 39.58 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.347, allocations: 5.281 kB / 0.5338 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.347, allocations: 0 / 0.5338 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3471, allocations: 0 / 0.5338 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.924e-05/0.3471, allocations: 1.25 kB / 0.5338 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001491/0.3472, allocations: 143 kB / 0.534 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.365e-05/0.3473, allocations: 29.06 kB / 0.534 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.44e-05/0.3473, allocations: 13.98 kB / 0.534 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.652e-06/0.3473, allocations: 0 / 0.534 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.836e-05/0.3474, allocations: 61.64 kB / 0.5341 GB, free: 10.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.3474, allocations: 0 / 0.5341 GB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001637/0.3476, allocations: 63.03 kB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.437e-05/0.3476, allocations: 86.28 kB / 0.5342 GB, free: 10.35 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.784e-05/0.3477, allocations: 97.81 kB / 0.5343 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.3477, allocations: 25.7 kB / 0.5343 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.302e-05/0.3478, allocations: 81.14 kB / 0.5344 GB, free: 10.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.446e-05/0.3478, allocations: 0 / 0.5344 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.158e-05/0.3478, allocations: 16.84 kB / 0.5344 GB, free: 10.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.348, allocations: 310.8 kB / 0.5347 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.698e-06/0.348, allocations: 1.344 kB / 0.5347 GB, free: 9.801 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.13e-06/0.348, allocations: 1.125 kB / 0.5347 GB, free: 9.801 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.699e-05/0.3481, allocations: 63.89 kB / 0.5348 GB, free: 9.727 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3481, allocations: 0 / 0.5348 GB, free: 9.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.93e-05/0.3482, allocations: 73.23 kB / 0.5348 GB, free: 9.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.3482, allocations: 31.7 kB / 0.5349 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.3482, allocations: 3.938 kB / 0.5349 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.3482, allocations: 1.469 kB / 0.5349 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.3482, allocations: 0 / 0.5349 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.3482, allocations: 0 / 0.5349 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.64e-05/0.3483, allocations: 0.9688 kB / 0.5349 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.3483, allocations: 5.219 kB / 0.5349 GB, free: 9.609 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.839e-05/0.3484, allocations: 137.1 kB / 0.535 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.174e-06/0.3484, allocations: 1.125 kB / 0.535 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.189e-05/0.3484, allocations: 8.312 kB / 0.535 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.3484, allocations: 0 / 0.535 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3484, allocations: 0 / 0.535 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3484, allocations: 1.375 kB / 0.535 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.3486, allocations: 146.8 kB / 0.5352 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.3486, allocations: 0 / 0.5352 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.3486, allocations: 4 kB / 0.5352 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.3486, allocations: 1.25 kB / 0.5352 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.3486, allocations: 9.344 kB / 0.5352 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3486, allocations: 0 / 0.5352 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3486, allocations: 3.938 kB / 0.5352 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001089/0.3487, allocations: 93.11 kB / 0.5353 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/0.3488, allocations: 78.45 kB / 0.5353 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.3488, allocations: 5.312 kB / 0.5353 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.065e-06/0.3488, allocations: 4 kB / 0.5353 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.629e-05/0.3488, allocations: 1.25 kB / 0.5353 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.3489, allocations: 7.922 kB / 0.5354 GB, free: 9.035 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.488e-05/0.3489, allocations: 76.75 kB / 0.5354 GB, free: 8.961 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3489, allocations: 0 / 0.5354 GB, free: 8.961 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003723/0.3493, allocations: 82.55 kB / 0.5355 GB, free: 8.938 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.0009199/0.3502, allocations: 0.7481 MB / 0.5362 GB, free: 8.246 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001268/0.3503, allocations: 68.83 kB / 0.5363 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3504, allocations: 0 / 0.5363 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.994e-05/0.3504, allocations: 54.16 kB / 0.5364 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.3505, allocations: 2.75 kB / 0.5364 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003633/0.3509, allocations: 143.2 kB / 0.5365 GB, free: 7.949 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.3513, allocations: 0.6742 MB / 0.5372 GB, free: 7.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.992e-06/0.3513, allocations: 0 / 0.5372 GB, free: 7.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.769e-05/0.3513, allocations: 8.812 kB / 0.5372 GB, free: 7.242 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3513, allocations: 0 / 0.5372 GB, free: 7.242 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.376, allocations: 2.791 MB / 0.5399 GB, free: 5.691 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.599, allocations: 13.81 kB / 0.5399 GB, free: 5.68 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestVectors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestVectors_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestVectors_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestVectors.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe 2>&1)