Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors") translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000905/0.0009087, allocations: 199.2 kB / 15.8 MB, free: 6.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.6 MB / 243.1 MB, free: 14.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000799/0.0007991, allocations: 101.5 kB / 295.1 MB, free: 9.996 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1804/0.1804, allocations: 44.85 MB / 392 MB, free: 9.266 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002355/0.0002355, allocations: 8 kB / 464.7 MB, free: 49.73 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.09399, allocations: 62.95 MB / 0.5153 GB, free: 2.746 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.0005431/0.09458, allocations: 220.6 kB / 0.5155 GB, free: 2.527 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.09573, allocations: 0.7273 MB / 0.5162 GB, free: 1.797 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.154e-05/0.09575, allocations: 0 / 0.5162 GB, free: 1.797 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.368e-06/0.09577, allocations: 0 / 0.5162 GB, free: 1.797 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.5e-06/0.09578, allocations: 0 / 0.5162 GB, free: 1.797 MB / 346.7 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.001331/0.09712, allocations: 0.544 MB / 0.5168 GB, free: 1.254 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.529e-05/0.09715, allocations: 0 / 0.5168 GB, free: 1.254 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.534e-05/0.09719, allocations: 3.984 kB / 0.5168 GB, free: 1.25 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.388e-05/0.09721, allocations: 4 kB / 0.5168 GB, free: 1.246 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.352e-05/0.09723, allocations: 0 / 0.5168 GB, free: 1.246 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.589e-06/0.09724, allocations: 0 / 0.5168 GB, free: 1.246 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005208/0.09776, allocations: 371.3 kB / 0.5171 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.989e-06/0.09778, allocations: 0 / 0.5171 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.568e-05/0.09782, allocations: 25.7 kB / 0.5172 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000295/0.09812, allocations: 243.5 kB / 0.5174 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.09814, allocations: 7.875 kB / 0.5174 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09814, allocations: 0 / 0.5174 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.196e-06/0.09815, allocations: 0 / 0.5174 GB, free: 0.6055 MB / 346.7 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.0003156/0.09847, allocations: 389.1 kB / 0.5178 GB, free: 176 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.09851, allocations: 8.031 kB / 0.5178 GB, free: 168 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.864e-05/0.09854, allocations: 4 kB / 0.5178 GB, free: 164 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1903/0.2888, allocations: 159.8 kB / 0.5179 GB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.2889, allocations: 0.5 kB / 0.5179 GB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.405e-05/0.2889, allocations: 5.922 kB / 0.5179 GB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.125e-05/0.289, allocations: 28.23 kB / 0.518 GB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.289, allocations: 3.75 kB / 0.518 GB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.289, allocations: 1.281 kB / 0.518 GB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.289, allocations: 0 / 0.518 GB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.869e-05/0.289, allocations: 4.641 kB / 0.518 GB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.833e-05/0.2891, allocations: 148.8 kB / 0.5181 GB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.632e-05/0.2892, allocations: 19.88 kB / 0.5181 GB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.295e-05/0.2892, allocations: 8.172 kB / 0.5181 GB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.674e-06/0.2892, allocations: 3.953 kB / 0.5181 GB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.2893, allocations: 61.84 kB / 0.5182 GB, free: 11.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.242e-06/0.2893, allocations: 0 / 0.5182 GB, free: 11.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001559/0.2894, allocations: 63.97 kB / 0.5183 GB, free: 11.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.2895, allocations: 78.98 kB / 0.5183 GB, free: 10.95 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.287e-05/0.2895, allocations: 92.14 kB / 0.5184 GB, free: 10.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.264e-06/0.2895, allocations: 26.45 kB / 0.5185 GB, free: 10.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.128e-05/0.2895, allocations: 83.42 kB / 0.5185 GB, free: 10.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.973e-05/0.2896, allocations: 1.219 kB / 0.5185 GB, free: 10.74 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-06/0.2896, allocations: 0.6875 kB / 0.5185 GB, free: 10.74 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.258e-05/0.2896, allocations: 312.5 kB / 0.5188 GB, free: 10.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.095e-06/0.2896, allocations: 2.656 kB / 0.5188 GB, free: 10.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.761e-06/0.2896, allocations: 5.609 kB / 0.5188 GB, free: 10.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.188e-05/0.2897, allocations: 28.48 kB / 0.5189 GB, free: 10.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2897, allocations: 0 / 0.5189 GB, free: 10.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.746e-05/0.2897, allocations: 66.56 kB / 0.5189 GB, free: 10.33 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/0.2898, allocations: 38.66 kB / 0.519 GB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.2898, allocations: 0 / 0.519 GB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.2898, allocations: 0.75 kB / 0.519 GB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-06/0.2898, allocations: 0.6094 kB / 0.519 GB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.2898, allocations: 0.5312 kB / 0.519 GB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.684e-05/0.2898, allocations: 5.859 kB / 0.519 GB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-06/0.2899, allocations: 1.406 kB / 0.519 GB, free: 10.3 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.274e-05/0.2899, allocations: 135.7 kB / 0.5191 GB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.875e-06/0.2899, allocations: 2.172 kB / 0.5191 GB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.919e-06/0.2899, allocations: 8.266 kB / 0.5191 GB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.29, allocations: 1.422 kB / 0.5191 GB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.29, allocations: 0 / 0.5191 GB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.29, allocations: 1.125 kB / 0.5191 GB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.869e-05/0.29, allocations: 145.8 kB / 0.5193 GB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.29, allocations: 5.609 kB / 0.5193 GB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5e-07/0.29, allocations: 3.938 kB / 0.5193 GB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.29, allocations: 0.7812 kB / 0.5193 GB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.2901, allocations: 2.078 kB / 0.5193 GB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2901, allocations: 4.547 kB / 0.5193 GB, free: 9.945 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2901, allocations: 0 / 0.5193 GB, free: 9.945 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.94e-05/0.2901, allocations: 96.38 kB / 0.5194 GB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.512e-05/0.2902, allocations: 78.41 kB / 0.5194 GB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.2902, allocations: 6.141 kB / 0.5194 GB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.277e-06/0.2902, allocations: 0.7188 kB / 0.5194 GB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.687e-05/0.2902, allocations: 5.438 kB / 0.5195 GB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.2902, allocations: 2.312 kB / 0.5195 GB, free: 9.746 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.178e-05/0.2902, allocations: 75.97 kB / 0.5195 GB, free: 9.672 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2903, allocations: 1.094 kB / 0.5195 GB, free: 9.672 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004489/0.2907, allocations: 80.89 kB / 0.5196 GB, free: 9.672 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004794/0.2912, allocations: 218.7 kB / 0.5198 GB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.715e-05/0.2913, allocations: 59.62 kB / 0.5199 GB, free: 9.512 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2913, allocations: 0 / 0.5199 GB, free: 9.512 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.078e-05/0.2913, allocations: 56.47 kB / 0.5199 GB, free: 9.449 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001167/0.2914, allocations: 2.266 kB / 0.5199 GB, free: 9.449 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001541/0.2916, allocations: 103.8 kB / 0.52 GB, free: 9.324 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.17e-05/0.2917, allocations: 0.6721 MB / 0.5207 GB, free: 8.629 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.534e-06/0.2917, allocations: 12.09 kB / 0.5207 GB, free: 8.617 MB / 346.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2917, allocations: 3.938 kB / 0.5207 GB, free: 8.613 MB / 346.7 MB Notification: Performance of Templates: time 0.003813/0.2955, allocations: 1.765 MB / 0.5224 GB, free: 8.469 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.pipe 2>&1)