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.001069/0.001069, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001184/0.001184, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2362/0.2362, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001448, allocations: 78.66 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09543/0.09689, allocations: 62.45 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001943/0.09888, allocations: 490 kB / 480.6 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.1004, allocations: 0.7669 MB / 481.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.37e-05/0.1004, allocations: 0 / 481.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.556e-06/0.1005, allocations: 0 / 481.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.298e-06/0.1005, allocations: 0 / 481.4 MB, free: 3.961 MB / 350.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.001822/0.1023, allocations: 0.6615 MB / 482 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.272e-05/0.1024, allocations: 0 / 482 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.679e-05/0.1024, allocations: 0 / 482 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.479e-05/0.1024, allocations: 4 kB / 482 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.516e-05/0.1025, allocations: 4 kB / 482 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.91e-06/0.1025, allocations: 0 / 482 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007214/0.1032, allocations: 383.3 kB / 482.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.749e-06/0.1032, allocations: 4 kB / 482.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.9e-05/0.1032, allocations: 4 kB / 482.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005255/0.1038, allocations: 347.3 kB / 482.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1038, allocations: 0 / 482.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1038, allocations: 0 / 482.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1038, allocations: 3.938 kB / 482.8 MB, free: 2.562 MB / 350.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.0003802/0.1042, allocations: 385.3 kB / 483.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.1042, allocations: 12.03 kB / 483.1 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.863e-05/0.1043, allocations: 34.75 kB / 483.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.378e-05/0.1043, allocations: 0.9375 kB / 483.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.1044, allocations: 164.4 kB / 483.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.1045, allocations: 4.359 kB / 483.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.1045, allocations: 4.375 kB / 483.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.378e-05/0.1046, allocations: 26.27 kB / 483.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.1046, allocations: 7.938 kB / 483.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.1046, allocations: 0 / 483.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.1046, allocations: 0 / 483.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.115e-05/0.1046, allocations: 4 kB / 483.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001387/0.1048, allocations: 153.6 kB / 483.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.569e-05/0.1048, allocations: 22.61 kB / 483.6 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.446e-05/0.1048, allocations: 4.859 kB / 483.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.039e-06/0.1048, allocations: 3.938 kB / 483.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.367e-05/0.1049, allocations: 60.27 kB / 483.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.1049, allocations: 0 / 483.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001799/0.1051, allocations: 75.33 kB / 483.7 MB, free: 1.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.1051, allocations: 77.11 kB / 483.8 MB, free: 1.328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.379e-05/0.1052, allocations: 89.86 kB / 483.9 MB, free: 1.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/0.1052, allocations: 29.7 kB / 483.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.679e-05/0.1053, allocations: 80.14 kB / 484 MB, free: 1.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.681e-05/0.1053, allocations: 0 / 484 MB, free: 1.113 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.586e-05/0.1053, allocations: 13.84 kB / 484 MB, free: 1.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1054, allocations: 314.8 kB / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.03e-05/0.1054, allocations: 0 / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.5e-06/0.1055, allocations: 3.938 kB / 484.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.105e-05/0.1055, allocations: 68.25 kB / 484.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1055, allocations: 0 / 484.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.145e-05/0.1056, allocations: 63.34 kB / 484.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.1056, allocations: 33.8 kB / 484.5 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.1057, allocations: 3.938 kB / 484.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.1057, allocations: 0 / 484.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.685e-06/0.1057, allocations: 3.984 kB / 484.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.1057, allocations: 0 / 484.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.63e-05/0.1057, allocations: 4 kB / 484.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.1057, allocations: 0 / 484.5 MB, free: 0.5664 MB / 350.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.02e-05/0.1058, allocations: 135.5 kB / 484.6 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.18e-05/0.1058, allocations: 4 kB / 484.6 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.728e-06/0.1059, allocations: 11.06 kB / 484.6 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-06/0.1059, allocations: 0 / 484.6 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1059, allocations: 0 / 484.6 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1059, allocations: 0 / 484.6 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.106, allocations: 145.7 kB / 484.8 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.106, allocations: 0 / 484.8 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-06/0.106, allocations: 4 kB / 484.8 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.106, allocations: 0 / 484.8 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-06/0.106, allocations: 3.938 kB / 484.8 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.106, allocations: 4 kB / 484.8 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.106, allocations: 0 / 484.8 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.369e-05/0.1061, allocations: 106.6 kB / 484.9 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/0.1062, allocations: 77.11 kB / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.1062, allocations: 3.938 kB / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.014e-05/0.1062, allocations: 0 / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.562e-05/0.1063, allocations: 4 kB / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.1063, allocations: 0 / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.036e-05/0.1063, allocations: 75.31 kB / 485 MB, free: 15.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1063, allocations: 4.031 kB / 485 MB, free: 15.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003517/0.1067, allocations: 87.97 kB / 485.1 MB, free: 15.81 MB / 366.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.0008264/0.1075, allocations: 0.7569 MB / 485.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.526e-05/0.1076, allocations: 63.34 kB / 485.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.1076, allocations: 0 / 485.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.339e-05/0.1077, allocations: 63.39 kB / 486 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.1078, allocations: 2.656 kB / 486 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000352/0.1082, allocations: 142.5 kB / 486.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.1084, allocations: 0.669 MB / 486.8 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.985e-06/0.1084, allocations: 0 / 486.8 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.183e-05/0.1085, allocations: 7.438 kB / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1085, allocations: 4.125 kB / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.1274, allocations: 2.765 MB / 489.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.276/7.404, allocations: 4.906 kB / 489.6 MB, free: 11.26 MB / 366.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)