Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test36.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.Tables.CombiTimeTable.Test36,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test36",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test36,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test36",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001008, allocations: 204.4 kB / 16.1 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 226.5 MB / 243.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007417/0.0007417, allocations: 102.8 kB / 295.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2789/0.2789, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002837, allocations: 11.98 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2859, allocations: 62.96 MB / 0.516 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test36): time 0.001876/0.2878, allocations: 1.445 MB / 0.5174 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.2892, allocations: 0.9519 MB / 0.5183 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.2893, allocations: 0 / 0.5183 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002929/0.2896, allocations: 93.12 kB / 0.5184 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003017/0.2899, allocations: 98.42 kB / 0.5185 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003111/0.2902, allocations: 101.1 kB / 0.5186 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001717/0.2904, allocations: 103.6 kB / 0.5187 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.2905, allocations: 14.52 kB / 0.5187 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.2906, allocations: 57.17 kB / 0.5188 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.838e-05/0.2908, allocations: 55.55 kB / 0.5188 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.2908, allocations: 6.906 kB / 0.5188 GB, free: 35.19 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.2909, allocations: 47.09 kB / 0.5189 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.723e-05/0.291, allocations: 24.34 kB / 0.5189 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.262e-05/0.291, allocations: 65.48 kB / 0.5189 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.2912, allocations: 98.45 kB / 0.519 GB, free: 35.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2912, allocations: 4 kB / 0.519 GB, free: 35.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2912, allocations: 0 / 0.519 GB, free: 35.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.2912, allocations: 0 / 0.519 GB, free: 35.08 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004655/0.2917, allocations: 419.5 kB / 0.5194 GB, free: 34.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.2918, allocations: 8.688 kB / 0.5194 GB, free: 34.67 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.738e-05/0.2918, allocations: 37.62 kB / 0.5195 GB, free: 34.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.993e-05/0.2918, allocations: 14.34 kB / 0.5195 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.292, allocations: 227.5 kB / 0.5197 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.2921, allocations: 10.94 kB / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.2921, allocations: 11.36 kB / 0.5197 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.2922, allocations: 56.3 kB / 0.5198 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.2923, allocations: 3.031 kB / 0.5198 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.2923, allocations: 0 / 0.5198 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.2923, allocations: 0 / 0.5198 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.219e-05/0.2924, allocations: 22.69 kB / 0.5198 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003379/0.2927, allocations: 307 kB / 0.5201 GB, free: 34.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.2929, allocations: 68.08 kB / 0.5202 GB, free: 33.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.835e-05/0.293, allocations: 21.7 kB / 0.5202 GB, free: 33.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.293, allocations: 80 / 0.5202 GB, free: 33.97 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001526/0.2932, allocations: 71.45 kB / 0.5203 GB, free: 33.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.2932, allocations: 7 kB / 0.5203 GB, free: 33.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006581/0.2939, allocations: 238.6 kB / 0.5205 GB, free: 33.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.528e-05/0.2939, allocations: 59.34 kB / 0.5206 GB, free: 33.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.2941, allocations: 223.6 kB / 0.5208 GB, free: 33.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.2941, allocations: 32.67 kB / 0.5208 GB, free: 33.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.109e-05/0.2941, allocations: 105.3 kB / 0.5209 GB, free: 33.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/0.2942, allocations: 44.89 kB / 0.5209 GB, free: 33.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/0.2942, allocations: 0 / 0.5209 GB, free: 33.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.436e-05/0.2942, allocations: 336.5 kB / 0.5213 GB, free: 33.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.895e-05/0.2943, allocations: 26.27 kB / 0.5213 GB, free: 33.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.009e-05/0.2944, allocations: 47.67 kB / 0.5213 GB, free: 33.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001126/0.2945, allocations: 82.8 kB / 0.5214 GB, free: 33.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.2945, allocations: 0 / 0.5214 GB, free: 33.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001975/0.2947, allocations: 124.1 kB / 0.5215 GB, free: 32.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.2947, allocations: 5.812 kB / 0.5215 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.2947, allocations: 0 / 0.5215 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.2947, allocations: 2.938 kB / 0.5215 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.194e-05/0.2948, allocations: 28.92 kB / 0.5216 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.2948, allocations: 0.7031 kB / 0.5216 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.899e-05/0.2949, allocations: 14.34 kB / 0.5216 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.2949, allocations: 2.906 kB / 0.5216 GB, free: 32.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 7.633e-05/0.295, allocations: 131.1 kB / 0.5217 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.882e-05/0.295, allocations: 16.78 kB / 0.5217 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.267e-05/0.295, allocations: 19.12 kB / 0.5217 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2951, allocations: 6.719 kB / 0.5217 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.2951, allocations: 0 / 0.5217 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2951, allocations: 3.844 kB / 0.5218 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003851/0.2955, allocations: 454 kB / 0.5222 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2955, allocations: 6.938 kB / 0.5222 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.118e-05/0.2955, allocations: 19.23 kB / 0.5222 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.716e-06/0.2955, allocations: 0 / 0.5222 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.2955, allocations: 2.562 kB / 0.5222 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.2956, allocations: 2.781 kB / 0.5222 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2956, allocations: 0 / 0.5222 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001923/0.2958, allocations: 234.2 kB / 0.5224 GB, free: 32.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.12e-05/0.2958, allocations: 102 kB / 0.5225 GB, free: 32.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.2958, allocations: 2.906 kB / 0.5225 GB, free: 32.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.233e-05/0.2959, allocations: 10.05 kB / 0.5225 GB, free: 32.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.491e-05/0.2959, allocations: 6.25 kB / 0.5226 GB, free: 32.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.296, allocations: 9.844 kB / 0.5226 GB, free: 32.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001055/0.2961, allocations: 180.4 kB / 0.5227 GB, free: 32 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2961, allocations: 0 / 0.5227 GB, free: 32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002426/0.2963, allocations: 32.72 kB / 0.5228 GB, free: 31.99 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001234/0.2976, allocations: 1.18 MB / 0.5239 GB, free: 31.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001673/0.2978, allocations: 78.58 kB / 0.524 GB, free: 31.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2978, allocations: 0 / 0.524 GB, free: 31.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.894e-05/0.2978, allocations: 44.05 kB / 0.524 GB, free: 31.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003276/0.2982, allocations: 28.33 kB / 0.5241 GB, free: 31.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.2993, allocations: 0.9063 MB / 0.5249 GB, free: 30.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.2994, allocations: 0.7198 MB / 0.5256 GB, free: 29.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.343e-05/0.2995, allocations: 47.02 kB / 0.5257 GB, free: 29.74 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2995, allocations: 192 / 0.5257 GB, free: 29.74 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.967/3.267, allocations: 2.69 MB / 0.5283 GB, free: 29.45 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test36.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test36.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test36.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test36.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test36_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test36_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test36.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test36.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test36_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test36/Test36.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test36.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches