Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.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.Test2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009351/0.0009352, allocations: 198.8 kB / 16.1 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 226.5 MB / 243.4 MB, free: 8.109 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007566/0.0007569, allocations: 88.97 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3012/0.3012, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003112, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3396, allocations: 62.98 MB / 0.516 GB, free: 36.87 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test2): time 0.001786/0.3414, allocations: 1.418 MB / 0.5174 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.3427, allocations: 0.9456 MB / 0.5183 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.049e-05/0.3428, allocations: 0 / 0.5183 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002963/0.3431, allocations: 38.19 kB / 0.5183 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000226/0.3434, allocations: 79.56 kB / 0.5184 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002506/0.3436, allocations: 89.34 kB / 0.5185 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000138/0.3438, allocations: 89.2 kB / 0.5186 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.3439, allocations: 14.11 kB / 0.5186 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.733e-05/0.344, allocations: 39.91 kB / 0.5186 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.699e-05/0.344, allocations: 27.53 kB / 0.5186 GB, free: 35 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.488e-05/0.3441, allocations: 6.781 kB / 0.5187 GB, free: 35 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.571e-05/0.3442, allocations: 35.52 kB / 0.5187 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.181e-05/0.3442, allocations: 17.17 kB / 0.5187 GB, free: 34.98 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.97e-05/0.3443, allocations: 54.11 kB / 0.5188 GB, free: 34.93 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.3444, allocations: 94.39 kB / 0.5188 GB, free: 34.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3444, allocations: 0 / 0.5188 GB, free: 34.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3444, allocations: 0 / 0.5188 GB, free: 34.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.3445, allocations: 0 / 0.5188 GB, free: 34.89 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.0004809/0.3449, allocations: 389.5 kB / 0.5192 GB, free: 34.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.345, allocations: 12.69 kB / 0.5192 GB, free: 34.5 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.027e-05/0.345, allocations: 34.75 kB / 0.5193 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.147e-05/0.3451, allocations: 10.47 kB / 0.5193 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.3453, allocations: 205.3 kB / 0.5195 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.3453, allocations: 8.312 kB / 0.5195 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.3453, allocations: 6.781 kB / 0.5195 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001415/0.3455, allocations: 56.56 kB / 0.5195 GB, free: 34.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3455, allocations: 3.938 kB / 0.5195 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.3455, allocations: 2.812 kB / 0.5195 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.3455, allocations: 0 / 0.5195 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.776e-05/0.3456, allocations: 22.86 kB / 0.5196 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000302/0.3459, allocations: 285.5 kB / 0.5198 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001536/0.3461, allocations: 60.25 kB / 0.5199 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.052e-05/0.3461, allocations: 20.8 kB / 0.5199 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.3462, allocations: 4 kB / 0.5199 GB, free: 33.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000161/0.3463, allocations: 76.45 kB / 0.52 GB, free: 33.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.3463, allocations: 0 / 0.52 GB, free: 33.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005011/0.3468, allocations: 167.9 kB / 0.5202 GB, free: 33.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.3469, allocations: 54.19 kB / 0.5202 GB, free: 33.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.347, allocations: 170.2 kB / 0.5204 GB, free: 33.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.347, allocations: 29.7 kB / 0.5204 GB, free: 33.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.927e-05/0.3471, allocations: 102.1 kB / 0.5205 GB, free: 33.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/0.3471, allocations: 20.91 kB / 0.5205 GB, free: 33.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.029e-06/0.3471, allocations: 4 kB / 0.5205 GB, free: 33.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.568e-05/0.3472, allocations: 320.8 kB / 0.5208 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.135e-05/0.3472, allocations: 18.81 kB / 0.5208 GB, free: 33.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.311e-05/0.3473, allocations: 40.45 kB / 0.5209 GB, free: 33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.965e-05/0.3474, allocations: 61.86 kB / 0.5209 GB, free: 32.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.3474, allocations: 0 / 0.5209 GB, free: 32.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001527/0.3476, allocations: 104 kB / 0.521 GB, free: 32.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.3476, allocations: 6.047 kB / 0.521 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3476, allocations: 2.656 kB / 0.521 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.3476, allocations: 0 / 0.521 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.35e-05/0.3477, allocations: 14.06 kB / 0.5211 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3477, allocations: 0 / 0.5211 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.595e-05/0.3478, allocations: 10.56 kB / 0.5211 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.3478, allocations: 7.531 kB / 0.5211 GB, free: 32.89 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.471e-05/0.3479, allocations: 131.5 kB / 0.5212 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.686e-05/0.3479, allocations: 12.8 kB / 0.5212 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.835e-05/0.3479, allocations: 11.62 kB / 0.5212 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3479, allocations: 3.188 kB / 0.5212 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.348, allocations: 0 / 0.5212 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.348, allocations: 7.875 kB / 0.5212 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003358/0.3483, allocations: 399.8 kB / 0.5216 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3483, allocations: 3.75 kB / 0.5216 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.838e-05/0.3484, allocations: 8.719 kB / 0.5216 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.3484, allocations: 3.938 kB / 0.5216 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.3484, allocations: 3 kB / 0.5216 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3484, allocations: 0 / 0.5216 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3484, allocations: 2.812 kB / 0.5216 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001735/0.3486, allocations: 203.3 kB / 0.5218 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.392e-05/0.3486, allocations: 86.7 kB / 0.5219 GB, free: 32.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.3486, allocations: 7.172 kB / 0.5219 GB, free: 32.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.73e-05/0.3487, allocations: 6.875 kB / 0.5219 GB, free: 32.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.538e-05/0.3488, allocations: 6.109 kB / 0.5219 GB, free: 32.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.3488, allocations: 3.406 kB / 0.5219 GB, free: 32.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.78e-05/0.3489, allocations: 131.9 kB / 0.5221 GB, free: 32.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3489, allocations: 0 / 0.5221 GB, free: 32.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000234/0.3491, allocations: 28.41 kB / 0.5221 GB, free: 32 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.001175/0.3503, allocations: 1.107 MB / 0.5232 GB, free: 31.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001531/0.3504, allocations: 54.92 kB / 0.5232 GB, free: 31.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3505, allocations: 0 / 0.5232 GB, free: 31.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.891e-05/0.3505, allocations: 25.38 kB / 0.5232 GB, free: 31.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.3509, allocations: 28.72 kB / 0.5233 GB, free: 31.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009687/0.3518, allocations: 0.6959 MB / 0.524 GB, free: 30.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001523/0.352, allocations: 0.703 MB / 0.5246 GB, free: 29.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.044e-05/0.3521, allocations: 31.17 kB / 0.5247 GB, free: 29.9 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3521, allocations: 0 / 0.5247 GB, free: 29.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.853/3.205, allocations: 2.192 MB / 0.5268 GB, free: 29.67 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test2_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test2/Test2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches