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.001354/0.001354, allocations: 118.8 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.001281/0.001281, allocations: 197.2 kB / 18.73 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.392/1.392, allocations: 227.4 MB / 247 MB, free: 10.42 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.2232/0.2232, allocations: 46.13 MB / 344.4 MB, free: 11.46 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.002195/0.002195, allocations: 79.88 kB / 480.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3232, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001625/0.3249, allocations: 498.7 kB / 0.5311 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.3262, allocations: 0.7684 MB / 0.5318 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.703e-05/0.3263, allocations: 0 / 0.5318 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.585e-05/0.3263, allocations: 0 / 0.5318 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.486e-06/0.3263, 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.001949/0.3283, allocations: 0.6593 MB / 0.5325 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.12e-05/0.3283, allocations: 10.39 kB / 0.5325 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.673e-05/0.3284, allocations: 1.125 kB / 0.5325 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.856e-05/0.3284, allocations: 0 / 0.5325 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.605e-05/0.3284, allocations: 1.281 kB / 0.5325 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.08e-06/0.3285, allocations: 0 / 0.5325 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007167/0.3292, allocations: 396.7 kB / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.416e-06/0.3292, allocations: 0 / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.243e-05/0.3292, allocations: 1 kB / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004896/0.3297, allocations: 351.8 kB / 0.5332 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3297, allocations: 5.375 kB / 0.5332 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3297, allocations: 0 / 0.5332 GB, free: 11.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.3298, allocations: 0 / 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.0004435/0.3302, allocations: 389.2 kB / 0.5336 GB, free: 11.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3302, allocations: 9.625 kB / 0.5336 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.772e-05/0.3303, allocations: 30.75 kB / 0.5336 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.532e-05/0.3303, allocations: 2.312 kB / 0.5336 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.3305, allocations: 164.4 kB / 0.5338 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.3305, allocations: 4.375 kB / 0.5338 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.392e-06/0.3305, allocations: 1.75 kB / 0.5338 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.691e-05/0.3306, allocations: 29.02 kB / 0.5338 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3306, allocations: 3.938 kB / 0.5338 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-06/0.3306, allocations: 0 / 0.5338 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.3306, allocations: 1.375 kB / 0.5338 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.696e-05/0.3306, allocations: 5.312 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001478/0.3308, allocations: 145.7 kB / 0.5339 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.694e-05/0.3308, allocations: 29.27 kB / 0.534 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.362e-05/0.3309, allocations: 6.234 kB / 0.534 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.074e-06/0.3309, allocations: 0 / 0.534 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.254e-05/0.3309, allocations: 57.64 kB / 0.534 GB, free: 10.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.3309, allocations: 0 / 0.534 GB, free: 10.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001648/0.3311, allocations: 71.52 kB / 0.5341 GB, free: 10.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.3312, allocations: 81.11 kB / 0.5342 GB, free: 10.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.923e-05/0.3312, allocations: 97.94 kB / 0.5343 GB, free: 10.28 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.3313, allocations: 27.08 kB / 0.5343 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.265e-05/0.3313, allocations: 80.14 kB / 0.5344 GB, free: 10.17 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.3313, allocations: 3.984 kB / 0.5344 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.726e-05/0.3314, allocations: 12.47 kB / 0.5344 GB, free: 10.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3315, allocations: 312.2 kB / 0.5347 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.918e-06/0.3315, allocations: 0 / 0.5347 GB, free: 9.836 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.42e-06/0.3315, allocations: 1.375 kB / 0.5347 GB, free: 9.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.614e-05/0.3316, allocations: 71.06 kB / 0.5347 GB, free: 9.754 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3316, allocations: 5.312 kB / 0.5348 GB, free: 9.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.619e-05/0.3317, allocations: 64.84 kB / 0.5348 GB, free: 9.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.392e-05/0.3317, allocations: 31.2 kB / 0.5348 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3318, allocations: 5.312 kB / 0.5348 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.3318, allocations: 0 / 0.5348 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.3318, allocations: 0 / 0.5348 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.3318, allocations: 1.375 kB / 0.5348 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.508e-05/0.3318, allocations: 0 / 0.5348 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.3318, allocations: 9.391 kB / 0.5349 GB, free: 9.637 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.524e-05/0.3319, allocations: 136.9 kB / 0.535 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.696e-05/0.332, allocations: 5.375 kB / 0.535 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.143e-05/0.332, allocations: 7.062 kB / 0.535 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.332, allocations: 1.375 kB / 0.535 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.332, allocations: 0 / 0.535 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-06/0.332, allocations: 0 / 0.535 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.3321, allocations: 148.4 kB / 0.5351 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.3321, allocations: 0 / 0.5351 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3321, allocations: 4 kB / 0.5351 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3321, allocations: 3.984 kB / 0.5352 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.3321, allocations: 5.312 kB / 0.5352 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3321, allocations: 3.938 kB / 0.5352 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.3322, allocations: 5.312 kB / 0.5352 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.3323, allocations: 88.45 kB / 0.5352 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.218e-05/0.3323, allocations: 78.48 kB / 0.5353 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.3323, allocations: 5.312 kB / 0.5353 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.935e-06/0.3323, allocations: 4.031 kB / 0.5353 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.105e-05/0.3324, allocations: 1.375 kB / 0.5353 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.3324, allocations: 0 / 0.5353 GB, free: 9.066 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.129e-05/0.3324, allocations: 76.66 kB / 0.5354 GB, free: 8.992 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3324, allocations: 0 / 0.5354 GB, free: 8.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003507/0.3328, allocations: 82.86 kB / 0.5355 GB, free: 8.969 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.0008745/0.3337, allocations: 0.7563 MB / 0.5362 GB, free: 8.266 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001131/0.3338, allocations: 60.89 kB / 0.5363 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3338, allocations: 0 / 0.5363 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.392e-05/0.3338, allocations: 54.16 kB / 0.5363 GB, free: 8.137 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001337/0.334, allocations: 5.25 kB / 0.5363 GB, free: 8.137 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003911/0.3344, allocations: 147.2 kB / 0.5365 GB, free: 7.973 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/0.3348, allocations: 0.6703 MB / 0.5371 GB, free: 7.277 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.734e-06/0.3348, allocations: 0 / 0.5371 GB, free: 7.277 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.473e-05/0.3348, allocations: 8.812 kB / 0.5371 GB, free: 7.27 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3348, allocations: 3.938 kB / 0.5371 GB, free: 7.266 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02531/0.3602, allocations: 2.787 MB / 0.5399 GB, free: 5.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.104/8.465, allocations: 11 kB / 0.5399 GB, free: 5.715 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestVectors.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestVectors.pipe 2>&1)