Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.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.Test1,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test1,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009398/0.0009397, allocations: 199.6 kB / 16.1 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 226.5 MB / 243.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008107/0.0008107, allocations: 104.6 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3293/0.3293, allocations: 44.82 MB / 392.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002945/0.0002945, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3096, allocations: 62.96 MB / 0.516 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test1): time 0.001535/0.3112, allocations: 1.426 MB / 0.5174 GB, free: 36.09 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.3123, allocations: 0.9468 MB / 0.5183 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.638e-05/0.3124, allocations: 0 / 0.5183 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002337/0.3126, allocations: 59.39 kB / 0.5183 GB, free: 35.42 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001871/0.3128, allocations: 80.14 kB / 0.5184 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.313, allocations: 95.56 kB / 0.5185 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.3132, allocations: 91.8 kB / 0.5186 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.827e-05/0.3133, allocations: 15.33 kB / 0.5186 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.866e-05/0.3133, allocations: 43.78 kB / 0.5187 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.192e-05/0.3134, allocations: 32.34 kB / 0.5187 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.3134, allocations: 3.062 kB / 0.5187 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.376e-05/0.3135, allocations: 36.69 kB / 0.5187 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.041e-05/0.3136, allocations: 33.52 kB / 0.5188 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.092e-05/0.3136, allocations: 61.59 kB / 0.5188 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.3137, allocations: 96.47 kB / 0.5189 GB, free: 35.15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3138, allocations: 6.906 kB / 0.5189 GB, free: 35.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3138, allocations: 0 / 0.5189 GB, free: 35.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.3138, allocations: 0 / 0.5189 GB, free: 35.14 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003998/0.3142, allocations: 424.9 kB / 0.5193 GB, free: 34.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.3142, allocations: 9.688 kB / 0.5193 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.071e-05/0.3142, allocations: 40.67 kB / 0.5194 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.809e-05/0.3143, allocations: 14.16 kB / 0.5194 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/0.3144, allocations: 221.4 kB / 0.5196 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.3145, allocations: 3.094 kB / 0.5196 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.488e-05/0.3145, allocations: 13.97 kB / 0.5196 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.3146, allocations: 51.27 kB / 0.5197 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.3146, allocations: 7.875 kB / 0.5197 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.3146, allocations: 0 / 0.5197 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3146, allocations: 2.5 kB / 0.5197 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.077e-05/0.3147, allocations: 22.42 kB / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002528/0.315, allocations: 294.8 kB / 0.52 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.3151, allocations: 64.7 kB / 0.52 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.551e-05/0.3152, allocations: 20.8 kB / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.3152, allocations: 0 / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001336/0.3153, allocations: 70.89 kB / 0.5201 GB, free: 33.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.3153, allocations: 0 / 0.5201 GB, free: 33.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004603/0.3158, allocations: 190 kB / 0.5203 GB, free: 33.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.352e-05/0.3158, allocations: 51.41 kB / 0.5203 GB, free: 33.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.316, allocations: 275.8 kB / 0.5206 GB, free: 33.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.929e-06/0.3161, allocations: 25.7 kB / 0.5206 GB, free: 33.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.098e-05/0.3161, allocations: 112 kB / 0.5207 GB, free: 33.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.187e-05/0.3161, allocations: 25.95 kB / 0.5208 GB, free: 33.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.147e-06/0.3161, allocations: 0 / 0.5208 GB, free: 33.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.272e-05/0.3162, allocations: 332.3 kB / 0.5211 GB, free: 33.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.968e-05/0.3163, allocations: 19.92 kB / 0.5211 GB, free: 33.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.09e-05/0.3163, allocations: 34.53 kB / 0.5211 GB, free: 33.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.369e-05/0.3164, allocations: 59.91 kB / 0.5212 GB, free: 33.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.3164, allocations: 0 / 0.5212 GB, free: 33.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000146/0.3166, allocations: 106 kB / 0.5213 GB, free: 33.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.3166, allocations: 12.5 kB / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3166, allocations: 160 / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.3166, allocations: 0 / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.452e-05/0.3167, allocations: 18.61 kB / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3167, allocations: 3.984 kB / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.404e-05/0.3168, allocations: 7.281 kB / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.3168, allocations: 6.844 kB / 0.5213 GB, free: 33.04 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 (10): * Single equations (assignments): 10 * 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.408e-05/0.3168, allocations: 133.8 kB / 0.5215 GB, free: 32.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.3169, allocations: 15.38 kB / 0.5215 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.779e-05/0.3169, allocations: 28.69 kB / 0.5215 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3169, allocations: 0 / 0.5215 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.3169, allocations: 4 kB / 0.5215 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.3169, allocations: 7.219 kB / 0.5215 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003109/0.3173, allocations: 409 kB / 0.5219 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3173, allocations: 2.625 kB / 0.5219 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.879e-05/0.3173, allocations: 8.547 kB / 0.5219 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3173, allocations: 6.531 kB / 0.5219 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.118e-06/0.3173, allocations: 6.875 kB / 0.5219 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3173, allocations: 0 / 0.5219 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3173, allocations: 3.938 kB / 0.5219 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001632/0.3175, allocations: 208.7 kB / 0.5221 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.023e-05/0.3175, allocations: 88.64 kB / 0.5222 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.3176, allocations: 7.906 kB / 0.5222 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.943e-05/0.3176, allocations: 15.27 kB / 0.5222 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.122e-05/0.3177, allocations: 7.922 kB / 0.5222 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.3177, allocations: 5.25 kB / 0.5223 GB, free: 32.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001255/0.3178, allocations: 201.6 kB / 0.5224 GB, free: 32.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3178, allocations: 0 / 0.5224 GB, free: 32.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002302/0.3181, allocations: 28.78 kB / 0.5225 GB, free: 32.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (8): * Single equations (assignments): 6 * 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.00107/0.3192, allocations: 1.095 MB / 0.5235 GB, free: 31.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001427/0.3193, allocations: 65.66 kB / 0.5236 GB, free: 31.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3193, allocations: 0 / 0.5236 GB, free: 31.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.295e-05/0.3194, allocations: 33.42 kB / 0.5236 GB, free: 31.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.3197, allocations: 25.31 kB / 0.5237 GB, free: 31.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.3208, allocations: 0.9197 MB / 0.5246 GB, free: 30.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/0.3209, allocations: 0.7219 MB / 0.5253 GB, free: 29.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.74e-05/0.321, allocations: 45.59 kB / 0.5253 GB, free: 29.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.321, allocations: 0 / 0.5253 GB, free: 29.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.894/3.215, allocations: 2.63 MB / 0.5279 GB, free: 29.64 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test1_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test1.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test1/Test1.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches