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.001161/0.001161, allocations: 122.8 kB / 17.79 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.001225/0.001225, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2163/0.2163, allocations: 46.09 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 75.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3571/0.3586, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001443/0.3601, allocations: 495.2 kB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.3615, allocations: 0.7712 MB / 0.5317 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.616e-05/0.3616, allocations: 1.719 kB / 0.5317 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.848e-06/0.3616, allocations: 0 / 0.5317 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.78e-06/0.3616, allocations: 0 / 0.5317 GB, free: 12.48 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.001672/0.3633, allocations: 0.6524 MB / 0.5324 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.856e-05/0.3633, allocations: 1.094 kB / 0.5324 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.061e-05/0.3634, allocations: 5.219 kB / 0.5324 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.433e-05/0.3634, allocations: 1.156 kB / 0.5324 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.513e-05/0.3634, allocations: 0 / 0.5324 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.951e-06/0.3634, allocations: 1.188 kB / 0.5324 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006297/0.3641, allocations: 399.1 kB / 0.5327 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.143e-06/0.3641, allocations: 0 / 0.5327 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.881e-05/0.3641, allocations: 1.188 kB / 0.5327 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004438/0.3646, allocations: 348.8 kB / 0.5331 GB, free: 11.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3646, allocations: 0 / 0.5331 GB, free: 11.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3646, allocations: 0 / 0.5331 GB, free: 11.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.3646, allocations: 1.375 kB / 0.5331 GB, free: 11.62 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.000399/0.365, allocations: 388.4 kB / 0.5334 GB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.365, allocations: 9.625 kB / 0.5335 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.855e-05/0.3651, allocations: 36.06 kB / 0.5335 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.478e-05/0.3651, allocations: 0.9375 kB / 0.5335 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.3652, allocations: 168.4 kB / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.3652, allocations: 1.75 kB / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.3652, allocations: 1.75 kB / 0.5337 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.913e-05/0.3653, allocations: 31.58 kB / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3653, allocations: 7.938 kB / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.3654, allocations: 1.375 kB / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.3654, allocations: 0 / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.597e-05/0.3654, allocations: 1.375 kB / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.3655, allocations: 151 kB / 0.5338 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.713e-05/0.3656, allocations: 19.89 kB / 0.5339 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.331e-05/0.3656, allocations: 10.17 kB / 0.5339 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.3656, allocations: 1.375 kB / 0.5339 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.3657, allocations: 61.64 kB / 0.5339 GB, free: 10.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3657, allocations: 0 / 0.5339 GB, free: 10.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001657/0.3659, allocations: 70.2 kB / 0.534 GB, free: 10.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.3659, allocations: 82.42 kB / 0.5341 GB, free: 10.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.819e-05/0.366, allocations: 89.86 kB / 0.5342 GB, free: 10.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.366, allocations: 25.7 kB / 0.5342 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.258e-05/0.366, allocations: 81.52 kB / 0.5343 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.75e-05/0.366, allocations: 4.125 kB / 0.5343 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.573e-05/0.3661, allocations: 12.47 kB / 0.5343 GB, free: 10.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.3662, allocations: 314.8 kB / 0.5346 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.051e-05/0.3662, allocations: 5.375 kB / 0.5346 GB, free: 9.875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.751e-06/0.3662, allocations: 1.375 kB / 0.5346 GB, free: 9.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.667e-05/0.3663, allocations: 63 kB / 0.5346 GB, free: 9.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3663, allocations: 0 / 0.5346 GB, free: 9.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.491e-05/0.3663, allocations: 58.38 kB / 0.5347 GB, free: 9.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.3664, allocations: 39.14 kB / 0.5347 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.3664, allocations: 3.938 kB / 0.5347 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.3664, allocations: 1.375 kB / 0.5347 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.3664, allocations: 0 / 0.5347 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3664, allocations: 3.984 kB / 0.5347 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.57e-05/0.3664, allocations: 1.375 kB / 0.5347 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-06/0.3665, allocations: 0 / 0.5347 GB, free: 9.691 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 7.297e-05/0.3665, allocations: 138.3 kB / 0.5349 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.495e-05/0.3666, allocations: 5.281 kB / 0.5349 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.137e-05/0.3666, allocations: 11.06 kB / 0.5349 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.3666, allocations: 0 / 0.5349 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3666, allocations: 1.375 kB / 0.5349 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.3666, allocations: 0 / 0.5349 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.441e-05/0.3667, allocations: 147 kB / 0.535 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3667, allocations: 0 / 0.535 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.11e-07/0.3667, allocations: 1.375 kB / 0.535 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.3667, allocations: 0 / 0.535 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.465e-06/0.3667, allocations: 5.312 kB / 0.535 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.3667, allocations: 3.938 kB / 0.535 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3667, allocations: 7.938 kB / 0.5351 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.08e-05/0.3668, allocations: 93.77 kB / 0.5351 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.871e-05/0.3669, allocations: 77.11 kB / 0.5352 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.3669, allocations: 5.312 kB / 0.5352 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.207e-06/0.3669, allocations: 1.375 kB / 0.5352 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.146e-05/0.3669, allocations: 0 / 0.5352 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-06/0.3669, allocations: 1.375 kB / 0.5352 GB, free: 9.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.986e-05/0.3669, allocations: 83.31 kB / 0.5353 GB, free: 9.039 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3669, allocations: 0 / 0.5353 GB, free: 9.039 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000355/0.3673, allocations: 83.09 kB / 0.5354 GB, free: 9.016 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.0007291/0.368, allocations: 0.7524 MB / 0.5361 GB, free: 8.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.3682, allocations: 68.84 kB / 0.5362 GB, free: 8.246 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3682, allocations: 0 / 0.5362 GB, free: 8.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.891e-05/0.3682, allocations: 54.16 kB / 0.5362 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.3683, allocations: 2.75 kB / 0.5362 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000341/0.3687, allocations: 144.7 kB / 0.5364 GB, free: 8.023 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.3689, allocations: 0.6703 MB / 0.537 GB, free: 7.328 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.221e-06/0.369, allocations: 0 / 0.537 GB, free: 7.328 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.791e-05/0.369, allocations: 12.88 kB / 0.537 GB, free: 7.316 MB / 398.1 MB Notification: Performance of SimCode: time 3.7e-07/0.369, allocations: 4 kB / 0.537 GB, free: 7.312 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02346/0.3924, allocations: 2.786 MB / 0.5398 GB, free: 5.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.805/8.198, allocations: 10.72 kB / 0.5398 GB, free: 5.762 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)