Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestVectors,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestVectors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestVectors,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestVectors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 106.4 kB / 17.78 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 187.1 kB / 18.71 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1953/0.1953, allocations: 44.19 MB / 336.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3413, allocations: 60.83 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001519/0.3429, allocations: 0.4939 MB / 0.5189 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.3441, allocations: 0.7672 MB / 0.5196 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.017e-05/0.3442, allocations: 0 / 0.5196 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.017e-05/0.3442, allocations: 0 / 0.5196 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.551e-06/0.3442, allocations: 0 / 0.5196 GB, free: 2.48 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.001604/0.3458, allocations: 0.5863 MB / 0.5202 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.511e-05/0.3459, allocations: 2.062 kB / 0.5202 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.382e-05/0.3459, allocations: 2 kB / 0.5202 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.332e-05/0.3459, allocations: 0 / 0.5202 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.618e-05/0.346, allocations: 5.406 kB / 0.5202 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.47e-06/0.346, allocations: 0 / 0.5202 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006508/0.3466, allocations: 387.6 kB / 0.5206 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.054e-06/0.3467, allocations: 1.156 kB / 0.5206 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.727e-05/0.3467, allocations: 0.7969 kB / 0.5206 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004887/0.3472, allocations: 334 kB / 0.5209 GB, free: 1.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3472, allocations: 0 / 0.5209 GB, free: 1.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3472, allocations: 1.062 kB / 0.5209 GB, free: 1.945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.3472, allocations: 0 / 0.5209 GB, free: 1.945 MB / 382.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.000292/0.3475, allocations: 387.1 kB / 0.5213 GB, free: 1.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.3475, allocations: 14.25 kB / 0.5213 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.051e-05/0.3476, allocations: 38.75 kB / 0.5213 GB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.543e-05/0.3476, allocations: 2.156 kB / 0.5213 GB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.13e-05/0.3477, allocations: 161.6 kB / 0.5215 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.3477, allocations: 1.562 kB / 0.5215 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-06/0.3477, allocations: 384 / 0.5215 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.989e-05/0.3478, allocations: 30.14 kB / 0.5215 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.3478, allocations: 3.938 kB / 0.5215 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-06/0.3478, allocations: 1.797 kB / 0.5215 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.126e-06/0.3478, allocations: 0 / 0.5215 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.532e-05/0.3478, allocations: 1.156 kB / 0.5215 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.885e-05/0.3479, allocations: 148.7 kB / 0.5217 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.979e-05/0.3479, allocations: 25.42 kB / 0.5217 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.108e-05/0.348, allocations: 6.016 kB / 0.5217 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-06/0.348, allocations: 1.719 kB / 0.5217 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.348, allocations: 58.11 kB / 0.5217 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.348, allocations: 0 / 0.5217 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001393/0.3481, allocations: 72.14 kB / 0.5218 GB, free: 0.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.471e-05/0.3482, allocations: 78.78 kB / 0.5219 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.889e-05/0.3482, allocations: 95.11 kB / 0.522 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.68e-06/0.3482, allocations: 25.7 kB / 0.522 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.077e-06/0.3482, allocations: 80.84 kB / 0.5221 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.435e-05/0.3482, allocations: 1.094 kB / 0.5221 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.133e-05/0.3483, allocations: 12.56 kB / 0.5221 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.437e-05/0.3483, allocations: 313.1 kB / 0.5224 GB, free: 244 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.355e-06/0.3483, allocations: 4 kB / 0.5224 GB, free: 240 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5e-06/0.3483, allocations: 4.906 kB / 0.5224 GB, free: 236 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.787e-05/0.3484, allocations: 64.89 kB / 0.5225 GB, free: 160 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3484, allocations: 0 / 0.5225 GB, free: 160 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.728e-05/0.3484, allocations: 63.61 kB / 0.5225 GB, free: 92 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.3485, allocations: 32.77 kB / 0.5226 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3485, allocations: 4.547 kB / 0.5226 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.3485, allocations: 0 / 0.5226 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.62e-07/0.3485, allocations: 5.25 kB / 0.5226 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.3485, allocations: 4.594 kB / 0.5226 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.491e-05/0.3485, allocations: 1 kB / 0.5226 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.3485, allocations: 5.062 kB / 0.5226 GB, free: 44 kB / 382.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 8.235e-05/0.3486, allocations: 135.4 kB / 0.5227 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-06/0.3486, allocations: 0 / 0.5227 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.48e-05/0.3486, allocations: 17.16 kB / 0.5227 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.3487, allocations: 0.5156 kB / 0.5227 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3487, allocations: 0 / 0.5227 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3487, allocations: 5.25 kB / 0.5227 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.435e-05/0.3488, allocations: 144.8 kB / 0.5229 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3488, allocations: 0.7969 kB / 0.5229 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.242e-06/0.3488, allocations: 1.219 kB / 0.5229 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.3488, allocations: 0 / 0.5229 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.3488, allocations: 5.609 kB / 0.5229 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.3488, allocations: 0 / 0.5229 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3488, allocations: 1.25 kB / 0.5229 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.911e-05/0.3489, allocations: 99.69 kB / 0.523 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.822e-05/0.3489, allocations: 78.19 kB / 0.523 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.3489, allocations: 5.062 kB / 0.523 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.558e-06/0.349, allocations: 2.062 kB / 0.5231 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.05e-05/0.349, allocations: 1.406 kB / 0.5231 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.349, allocations: 0 / 0.5231 GB, free: 15.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.236e-05/0.349, allocations: 76.38 kB / 0.5231 GB, free: 15.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.349, allocations: 0 / 0.5231 GB, free: 15.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003588/0.3494, allocations: 78.39 kB / 0.5232 GB, free: 15.39 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.0006575/0.3501, allocations: 0.753 MB / 0.5239 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.987e-05/0.3501, allocations: 61.72 kB / 0.524 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3502, allocations: 1.062 kB / 0.524 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.236e-05/0.3502, allocations: 62.59 kB / 0.5241 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001158/0.3503, allocations: 3.062 kB / 0.5241 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002897/0.3506, allocations: 133.2 kB / 0.5242 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.3508, allocations: 0.6761 MB / 0.5248 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.2e-06/0.3508, allocations: 0 / 0.5248 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.228e-05/0.3508, allocations: 9.062 kB / 0.5249 GB, free: 13.72 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3509, allocations: 0 / 0.5249 GB, free: 13.72 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02049/0.3713, allocations: 2.689 MB / 0.5275 GB, free: 12.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.658/8.029, allocations: 15.91 kB / 0.5275 GB, free: 12.79 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestVectors_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestVectors.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe 2>&1)