Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.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.Test41,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test41",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test41,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test41",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001015/0.001015, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 226.5 MB / 243.4 MB, free: 8.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008148/0.0008148, allocations: 99.77 kB / 295.5 MB, free: 6.859 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3162/0.3162, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002755/0.0002756, allocations: 12 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3277, allocations: 62.96 MB / 0.516 GB, free: 37.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test41): time 0.00172/0.3295, allocations: 1.43 MB / 0.5174 GB, free: 36.18 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.3307, allocations: 0.9478 MB / 0.5183 GB, free: 35.53 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.188e-05/0.3308, allocations: 0 / 0.5183 GB, free: 35.53 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003003/0.3311, allocations: 82.95 kB / 0.5184 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.3313, allocations: 95.41 kB / 0.5185 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.3316, allocations: 94.97 kB / 0.5186 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.3317, allocations: 101.8 kB / 0.5186 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.869e-05/0.3318, allocations: 17.33 kB / 0.5187 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.919e-05/0.3319, allocations: 42.23 kB / 0.5187 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.744e-05/0.332, allocations: 52.05 kB / 0.5188 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.332, allocations: 3.688 kB / 0.5188 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.483e-05/0.3321, allocations: 28.06 kB / 0.5188 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.579e-05/0.3322, allocations: 27.67 kB / 0.5188 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.114e-05/0.3322, allocations: 65.42 kB / 0.5189 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.3324, allocations: 98.27 kB / 0.519 GB, free: 35.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3324, allocations: 0 / 0.519 GB, free: 35.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3324, allocations: 0 / 0.519 GB, free: 35.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.3324, allocations: 7.875 kB / 0.519 GB, free: 35.21 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.0004285/0.3328, allocations: 402.1 kB / 0.5194 GB, free: 34.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.3329, allocations: 9.781 kB / 0.5194 GB, free: 34.81 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.585e-05/0.3329, allocations: 34.16 kB / 0.5194 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.835e-05/0.333, allocations: 11.84 kB / 0.5194 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001952/0.3332, allocations: 221.8 kB / 0.5196 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.3332, allocations: 4.359 kB / 0.5196 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.3332, allocations: 6.812 kB / 0.5196 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.3333, allocations: 59.86 kB / 0.5197 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.3334, allocations: 0 / 0.5197 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.3334, allocations: 0 / 0.5197 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.3334, allocations: 3 kB / 0.5197 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.429e-05/0.3335, allocations: 19.34 kB / 0.5197 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002923/0.3338, allocations: 295.7 kB / 0.52 GB, free: 34.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001439/0.3339, allocations: 58.31 kB / 0.5201 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.66e-05/0.334, allocations: 20.58 kB / 0.5201 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.334, allocations: 4 kB / 0.5201 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001422/0.3341, allocations: 64.03 kB / 0.5201 GB, free: 34.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.392e-06/0.3341, allocations: 0 / 0.5201 GB, free: 34.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004741/0.3346, allocations: 177.4 kB / 0.5203 GB, free: 33.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.491e-05/0.3347, allocations: 54.25 kB / 0.5204 GB, free: 33.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.3348, allocations: 228.6 kB / 0.5206 GB, free: 33.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.378e-06/0.3349, allocations: 25.7 kB / 0.5206 GB, free: 33.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.052e-05/0.3349, allocations: 106.5 kB / 0.5207 GB, free: 33.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.165e-05/0.3349, allocations: 26.05 kB / 0.5207 GB, free: 33.63 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-06/0.3349, allocations: 4 kB / 0.5207 GB, free: 33.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.93e-05/0.335, allocations: 324.1 kB / 0.521 GB, free: 33.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/0.3351, allocations: 20.06 kB / 0.5211 GB, free: 33.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.221e-05/0.3351, allocations: 39.38 kB / 0.5211 GB, free: 33.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.52e-05/0.3352, allocations: 57.81 kB / 0.5211 GB, free: 33.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.3352, allocations: 0 / 0.5211 GB, free: 33.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001492/0.3354, allocations: 115 kB / 0.5213 GB, free: 33.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.3354, allocations: 5.344 kB / 0.5213 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.3354, allocations: 0 / 0.5213 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.3354, allocations: 2.688 kB / 0.5213 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.756e-05/0.3355, allocations: 13.78 kB / 0.5213 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.3355, allocations: 192 / 0.5213 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.602e-05/0.3356, allocations: 11.06 kB / 0.5213 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.3356, allocations: 6.781 kB / 0.5213 GB, free: 33.16 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.576e-05/0.3357, allocations: 132.8 kB / 0.5214 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/0.3357, allocations: 17.56 kB / 0.5214 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.721e-05/0.3357, allocations: 15.09 kB / 0.5215 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.3357, allocations: 4 kB / 0.5215 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3357, allocations: 2.844 kB / 0.5215 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.3358, allocations: 11.06 kB / 0.5215 GB, free: 33.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003194/0.3361, allocations: 395.9 kB / 0.5218 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3361, allocations: 4.031 kB / 0.5219 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.816e-05/0.3361, allocations: 8.75 kB / 0.5219 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.3361, allocations: 7.406 kB / 0.5219 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.3361, allocations: 2.969 kB / 0.5219 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3362, allocations: 0 / 0.5219 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3362, allocations: 0 / 0.5219 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001646/0.3363, allocations: 201.5 kB / 0.5221 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.93e-05/0.3364, allocations: 90.89 kB / 0.5222 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.3364, allocations: 6.656 kB / 0.5222 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.771e-05/0.3365, allocations: 10.66 kB / 0.5222 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.181e-05/0.3365, allocations: 6.188 kB / 0.5222 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.3365, allocations: 2.438 kB / 0.5222 GB, free: 32.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.842e-05/0.3366, allocations: 168.8 kB / 0.5223 GB, free: 32.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3366, allocations: 0 / 0.5223 GB, free: 32.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002324/0.3369, allocations: 24.56 kB / 0.5224 GB, free: 32.27 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.001149/0.338, allocations: 1.109 MB / 0.5234 GB, free: 31.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001495/0.3382, allocations: 59.14 kB / 0.5235 GB, free: 31.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3382, allocations: 0 / 0.5235 GB, free: 31.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.127e-05/0.3383, allocations: 32.92 kB / 0.5235 GB, free: 31.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.3386, allocations: 26.27 kB / 0.5236 GB, free: 31.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009907/0.3396, allocations: 0.8087 MB / 0.5243 GB, free: 30.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.3397, allocations: 0.7159 MB / 0.525 GB, free: 30.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.585e-05/0.3398, allocations: 35.7 kB / 0.5251 GB, free: 30.12 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3398, allocations: 0 / 0.5251 GB, free: 30.12 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.861/3.201, allocations: 2.394 MB / 0.5274 GB, free: 29.87 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test41_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test41.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test41/Test41.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches