Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.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.Test6,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test6,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001285/0.001285, allocations: 199.7 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.283/1.283, allocations: 226.5 MB / 243.4 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008117/0.0008115, allocations: 92.92 kB / 295.5 MB, free: 6.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3401/0.3401, allocations: 44.81 MB / 392.3 MB, free: 35.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003695/0.0003697, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.3152, allocations: 62.97 MB / 0.516 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test6): time 0.001627/0.3168, allocations: 1.425 MB / 0.5174 GB, free: 36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.318, allocations: 0.9515 MB / 0.5183 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.11e-05/0.3181, allocations: 0 / 0.5183 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002697/0.3183, allocations: 58.5 kB / 0.5184 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.3186, allocations: 74.91 kB / 0.5184 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002332/0.3188, allocations: 97.62 kB / 0.5185 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001331/0.3189, allocations: 94.77 kB / 0.5186 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.157e-05/0.319, allocations: 14.34 kB / 0.5186 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.997e-05/0.3191, allocations: 42.33 kB / 0.5187 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.497e-05/0.3192, allocations: 33.23 kB / 0.5187 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.3192, allocations: 0 / 0.5187 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.716e-05/0.3193, allocations: 37.03 kB / 0.5187 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.457e-05/0.3193, allocations: 36.11 kB / 0.5188 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.329e-05/0.3194, allocations: 73.58 kB / 0.5188 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.3195, allocations: 99.25 kB / 0.5189 GB, free: 35.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3196, allocations: 0 / 0.5189 GB, free: 35.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3196, allocations: 0 / 0.5189 GB, free: 35.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.3196, allocations: 0 / 0.5189 GB, free: 35.05 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.0004359/0.32, allocations: 427.5 kB / 0.5193 GB, free: 34.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.3201, allocations: 8.625 kB / 0.5193 GB, free: 34.63 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.225e-05/0.3201, allocations: 33.62 kB / 0.5194 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.338e-05/0.3201, allocations: 18.97 kB / 0.5194 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/0.3203, allocations: 227.1 kB / 0.5196 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.3203, allocations: 384 / 0.5196 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.3204, allocations: 10.84 kB / 0.5196 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001237/0.3205, allocations: 59.83 kB / 0.5197 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.3205, allocations: 0 / 0.5197 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.3205, allocations: 3.094 kB / 0.5197 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.3205, allocations: 2.906 kB / 0.5197 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.458e-05/0.3206, allocations: 16.31 kB / 0.5197 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002869/0.3209, allocations: 305.5 kB / 0.52 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.321, allocations: 59.58 kB / 0.52 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.605e-05/0.3211, allocations: 17.33 kB / 0.5201 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.3211, allocations: 0 / 0.5201 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001419/0.3213, allocations: 77.61 kB / 0.5201 GB, free: 33.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.233e-06/0.3213, allocations: 0 / 0.5201 GB, free: 33.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004839/0.3218, allocations: 180.8 kB / 0.5203 GB, free: 33.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.45e-05/0.3218, allocations: 55.41 kB / 0.5204 GB, free: 33.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.322, allocations: 286.4 kB / 0.5206 GB, free: 33.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.049e-05/0.322, allocations: 33.64 kB / 0.5207 GB, free: 33.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.175e-05/0.3221, allocations: 115.5 kB / 0.5208 GB, free: 33.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/0.3221, allocations: 22.61 kB / 0.5208 GB, free: 33.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.3221, allocations: 10.84 kB / 0.5208 GB, free: 33.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.901e-05/0.3222, allocations: 328 kB / 0.5211 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.619e-05/0.3222, allocations: 20.98 kB / 0.5211 GB, free: 33.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.99e-05/0.3223, allocations: 36.44 kB / 0.5212 GB, free: 33.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.178e-05/0.3224, allocations: 58.23 kB / 0.5212 GB, free: 33.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.12e-07/0.3224, allocations: 0 / 0.5212 GB, free: 33.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001448/0.3225, allocations: 108.3 kB / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.3225, allocations: 8.094 kB / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.3226, allocations: 0 / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.3226, allocations: 2.531 kB / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.613e-05/0.3227, allocations: 17.11 kB / 0.5214 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.3227, allocations: 0 / 0.5214 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.591e-05/0.3227, allocations: 10.81 kB / 0.5214 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-06/0.3227, allocations: 2.781 kB / 0.5214 GB, free: 32.95 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.495e-05/0.3228, allocations: 141.4 kB / 0.5215 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.725e-05/0.3228, allocations: 13.5 kB / 0.5215 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.712e-05/0.3229, allocations: 21.39 kB / 0.5215 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3229, allocations: 2.969 kB / 0.5215 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3229, allocations: 0 / 0.5215 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.3229, allocations: 11.3 kB / 0.5216 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000323/0.3232, allocations: 409.6 kB / 0.5219 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3232, allocations: 7.734 kB / 0.522 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.788e-05/0.3233, allocations: 8.281 kB / 0.522 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.3233, allocations: 7.938 kB / 0.522 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.3233, allocations: 2.719 kB / 0.522 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3233, allocations: 0 / 0.522 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3233, allocations: 2.844 kB / 0.522 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001651/0.3235, allocations: 205.7 kB / 0.5222 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.406e-05/0.3235, allocations: 106.8 kB / 0.5223 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.3236, allocations: 6.75 kB / 0.5223 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.622e-05/0.3236, allocations: 0 / 0.5223 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.846e-05/0.3237, allocations: 8.609 kB / 0.5223 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.3237, allocations: 2.656 kB / 0.5223 GB, free: 32.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000129/0.3238, allocations: 212.1 kB / 0.5225 GB, free: 32.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3238, allocations: 0 / 0.5225 GB, free: 32.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000229/0.324, allocations: 29.44 kB / 0.5225 GB, free: 32.02 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.001084/0.3251, allocations: 1.106 MB / 0.5236 GB, free: 31.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001422/0.3253, allocations: 51.09 kB / 0.5237 GB, free: 31.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3253, allocations: 3.938 kB / 0.5237 GB, free: 31.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.848e-05/0.3254, allocations: 32.89 kB / 0.5237 GB, free: 31.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.3257, allocations: 29.75 kB / 0.5237 GB, free: 31.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.3268, allocations: 0.9468 MB / 0.5246 GB, free: 30.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.3269, allocations: 0.7233 MB / 0.5253 GB, free: 29.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.713e-05/0.327, allocations: 42.58 kB / 0.5254 GB, free: 29.82 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.327, allocations: 0 / 0.5254 GB, free: 29.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.811/3.138, allocations: 2.692 MB / 0.528 GB, free: 29.52 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test6_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test6.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test6/Test6.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches