Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.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: "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.001439, allocations: 200 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.5 MB / 243.4 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007911/0.000791, allocations: 95.05 kB / 295.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2925/0.2925, allocations: 44.83 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002754/0.0002755, allocations: 11.98 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3028, allocations: 62.96 MB / 0.516 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0004818/0.3033, allocations: 211.7 kB / 0.5162 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004258/0.3037, allocations: 233.4 kB / 0.5164 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.668e-05/0.3038, allocations: 0 / 0.5164 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.826e-06/0.3038, allocations: 0 / 0.5164 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.951e-06/0.3038, allocations: 0 / 0.5164 GB, free: 36.92 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002394/0.304, allocations: 50.02 kB / 0.5164 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.035e-05/0.3041, allocations: 0 / 0.5164 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.688e-05/0.3041, allocations: 0 / 0.5164 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.537e-05/0.3041, allocations: 6.953 kB / 0.5164 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.154e-05/0.3042, allocations: 0 / 0.5164 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.334e-06/0.3042, allocations: 0 / 0.5164 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.3043, allocations: 56.53 kB / 0.5165 GB, free: 36.87 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-06/0.3043, allocations: 2.969 kB / 0.5165 GB, free: 36.87 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.649e-05/0.3043, allocations: 29.64 kB / 0.5165 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.695e-05/0.3044, allocations: 33.38 kB / 0.5165 GB, free: 36.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3044, allocations: 3.062 kB / 0.5166 GB, free: 36.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3044, allocations: 4 kB / 0.5166 GB, free: 36.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.307e-06/0.3044, allocations: 0 / 0.5166 GB, free: 36.82 MB / 378.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.0001949/0.3046, allocations: 358.4 kB / 0.5169 GB, free: 36.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.3047, allocations: 10.88 kB / 0.5169 GB, free: 36.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.845e-05/0.3047, allocations: 34.12 kB / 0.5169 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.943e-05/0.3047, allocations: 0.9375 kB / 0.5169 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.885e-05/0.3048, allocations: 160.4 kB / 0.5171 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.3048, allocations: 384 / 0.5171 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-06/0.3048, allocations: 7.844 kB / 0.5171 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.44e-05/0.3049, allocations: 30.27 kB / 0.5171 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.3049, allocations: 3.938 kB / 0.5171 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.613e-06/0.3049, allocations: 2.906 kB / 0.5171 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.3049, allocations: 7.266 kB / 0.5171 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.336e-05/0.3049, allocations: 3.938 kB / 0.5171 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.834e-05/0.305, allocations: 148.6 kB / 0.5173 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.66e-05/0.3051, allocations: 14.58 kB / 0.5173 GB, free: 35.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.047e-05/0.3051, allocations: 15.67 kB / 0.5173 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.212e-06/0.3051, allocations: 0 / 0.5173 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.3051, allocations: 59.64 kB / 0.5174 GB, free: 35.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.3051, allocations: 0 / 0.5174 GB, free: 35.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001203/0.3052, allocations: 68.03 kB / 0.5174 GB, free: 35.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.378e-05/0.3053, allocations: 77.11 kB / 0.5175 GB, free: 35.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.678e-05/0.3053, allocations: 93 kB / 0.5176 GB, free: 35.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.941e-06/0.3053, allocations: 25.7 kB / 0.5176 GB, free: 35.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.105e-06/0.3053, allocations: 87.08 kB / 0.5177 GB, free: 35.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.194e-05/0.3053, allocations: 3.984 kB / 0.5177 GB, free: 35.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.643e-06/0.3053, allocations: 0 / 0.5177 GB, free: 35.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.742e-05/0.3054, allocations: 314.8 kB / 0.518 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.955e-06/0.3054, allocations: 6.938 kB / 0.518 GB, free: 35.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.997e-06/0.3054, allocations: 0 / 0.518 GB, free: 35.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.677e-05/0.3054, allocations: 59.23 kB / 0.5181 GB, free: 35.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3054, allocations: 0 / 0.5181 GB, free: 35.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.551e-05/0.3055, allocations: 64.7 kB / 0.5181 GB, free: 34.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.3055, allocations: 34.48 kB / 0.5182 GB, free: 34.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3055, allocations: 7.938 kB / 0.5182 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.3056, allocations: 2.781 kB / 0.5182 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.3056, allocations: 0 / 0.5182 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.3056, allocations: 0 / 0.5182 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.397e-05/0.3056, allocations: 0 / 0.5182 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.3056, allocations: 3.234 kB / 0.5182 GB, free: 34.95 MB / 378.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 4.804e-05/0.3057, allocations: 142.1 kB / 0.5183 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.742e-06/0.3057, allocations: 6.781 kB / 0.5183 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.025e-06/0.3057, allocations: 10.66 kB / 0.5183 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.3057, allocations: 3.984 kB / 0.5183 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.3057, allocations: 0 / 0.5183 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-06/0.3057, allocations: 0 / 0.5183 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.644e-05/0.3057, allocations: 147.9 kB / 0.5185 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.3058, allocations: 0 / 0.5185 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.42e-07/0.3058, allocations: 0 / 0.5185 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.81e-07/0.3058, allocations: 3.938 kB / 0.5185 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.3058, allocations: 6.844 kB / 0.5185 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.3058, allocations: 4 kB / 0.5185 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3058, allocations: 0 / 0.5185 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.89e-05/0.3058, allocations: 89.52 kB / 0.5186 GB, free: 34.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.353e-05/0.3059, allocations: 81.05 kB / 0.5187 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.3059, allocations: 7.359 kB / 0.5187 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.137e-06/0.3059, allocations: 3 kB / 0.5187 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.228e-05/0.3059, allocations: 0 / 0.5187 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.3059, allocations: 32 / 0.5187 GB, free: 34.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.071e-05/0.3059, allocations: 83.22 kB / 0.5187 GB, free: 34.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3059, allocations: 0 / 0.5187 GB, free: 34.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002314/0.3062, allocations: 22.66 kB / 0.5188 GB, free: 34.3 MB / 378.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.0005563/0.3067, allocations: 0.7915 MB / 0.5195 GB, free: 33.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.023e-05/0.3068, allocations: 60.59 kB / 0.5196 GB, free: 33.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3068, allocations: 0 / 0.5196 GB, free: 33.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.713e-05/0.3068, allocations: 61.75 kB / 0.5197 GB, free: 33.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001098/0.307, allocations: 2.625 kB / 0.5197 GB, free: 33.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002157/0.3072, allocations: 141.7 kB / 0.5198 GB, free: 33.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.084e-05/0.3073, allocations: 0.6721 MB / 0.5205 GB, free: 32.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.039e-05/0.3073, allocations: 7.438 kB / 0.5205 GB, free: 32.61 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3073, allocations: 0 / 0.5205 GB, free: 32.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.505/2.812, allocations: 1.101 MB / 0.5215 GB, free: 32.48 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches