Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test37.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.Test37,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test37",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test37,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test37",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000958/0.000958, allocations: 194.7 kB / 16.1 MB, free: 5.559 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 226.5 MB / 243.4 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007434/0.0007437, allocations: 99.17 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3522/0.3522, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000278/0.000278, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3015, allocations: 62.96 MB / 0.516 GB, free: 37.26 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test37): time 0.001947/0.3035, allocations: 1.389 MB / 0.5173 GB, free: 36.24 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.3049, allocations: 0.9373 MB / 0.5182 GB, free: 35.6 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.309e-05/0.305, allocations: 0 / 0.5182 GB, free: 35.6 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003501/0.3053, allocations: 63.38 kB / 0.5183 GB, free: 35.58 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.3056, allocations: 84.69 kB / 0.5184 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.3059, allocations: 87.06 kB / 0.5185 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.306, allocations: 102.8 kB / 0.5186 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.664e-05/0.3061, allocations: 7.828 kB / 0.5186 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.3062, allocations: 42.67 kB / 0.5186 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.182e-05/0.3063, allocations: 43.3 kB / 0.5186 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.3063, allocations: 0 / 0.5186 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.789e-05/0.3064, allocations: 28.75 kB / 0.5187 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.484e-05/0.3065, allocations: 17.3 kB / 0.5187 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.415e-05/0.3065, allocations: 53.83 kB / 0.5187 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.3067, allocations: 80.38 kB / 0.5188 GB, free: 35.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3067, allocations: 4 kB / 0.5188 GB, free: 35.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3067, allocations: 0 / 0.5188 GB, free: 35.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.3067, allocations: 0 / 0.5188 GB, free: 35.32 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004919/0.3072, allocations: 395.3 kB / 0.5192 GB, free: 34.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.3073, allocations: 8.906 kB / 0.5192 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.527e-05/0.3073, allocations: 30.75 kB / 0.5192 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.756e-05/0.3073, allocations: 16.56 kB / 0.5193 GB, free: 34.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.3075, allocations: 205.9 kB / 0.5194 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3075, allocations: 3.562 kB / 0.5195 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.3075, allocations: 11.27 kB / 0.5195 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.3077, allocations: 45.58 kB / 0.5195 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3077, allocations: 2.5 kB / 0.5195 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-06/0.3077, allocations: 4 kB / 0.5195 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.3077, allocations: 4 kB / 0.5195 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.554e-05/0.3078, allocations: 16.36 kB / 0.5195 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001558/0.3079, allocations: 182.8 kB / 0.5197 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.3081, allocations: 56.2 kB / 0.5198 GB, free: 34.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.58e-05/0.3081, allocations: 17.84 kB / 0.5198 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.3082, allocations: 6.938 kB / 0.5198 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001453/0.3083, allocations: 70.77 kB / 0.5199 GB, free: 34.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.352e-06/0.3083, allocations: 0 / 0.5199 GB, free: 34.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002381/0.3086, allocations: 93.02 kB / 0.5199 GB, free: 34.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.3086, allocations: 51.41 kB / 0.52 GB, free: 34.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.3088, allocations: 198.3 kB / 0.5202 GB, free: 34.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.778e-06/0.3088, allocations: 25.7 kB / 0.5202 GB, free: 34.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.491e-05/0.3088, allocations: 105.1 kB / 0.5203 GB, free: 33.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.3088, allocations: 14.11 kB / 0.5203 GB, free: 33.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.539e-06/0.3089, allocations: 4 kB / 0.5203 GB, free: 33.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.083e-05/0.3089, allocations: 325.5 kB / 0.5206 GB, free: 33.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.406e-05/0.309, allocations: 16.47 kB / 0.5206 GB, free: 33.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.395e-05/0.309, allocations: 29.81 kB / 0.5207 GB, free: 33.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.84e-05/0.3091, allocations: 43.92 kB / 0.5207 GB, free: 33.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3091, allocations: 3.938 kB / 0.5207 GB, free: 33.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001244/0.3092, allocations: 88.02 kB / 0.5208 GB, free: 33.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.3093, allocations: 5.812 kB / 0.5208 GB, free: 33.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.3093, allocations: 0 / 0.5208 GB, free: 33.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.3093, allocations: 6.781 kB / 0.5208 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.749e-05/0.3094, allocations: 8.875 kB / 0.5208 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.3094, allocations: 0 / 0.5208 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.518e-05/0.3094, allocations: 10.36 kB / 0.5208 GB, free: 33.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.3094, allocations: 2.406 kB / 0.5208 GB, free: 33.45 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 (7): * Single equations (assignments): 7 * 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 6.97e-05/0.3095, allocations: 123.8 kB / 0.521 GB, free: 33.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.492e-05/0.3095, allocations: 9.625 kB / 0.521 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.192e-05/0.3096, allocations: 15.28 kB / 0.521 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3096, allocations: 6.5 kB / 0.521 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.3096, allocations: 0 / 0.521 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3096, allocations: 7.922 kB / 0.521 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.81e-05/0.3097, allocations: 187.6 kB / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3097, allocations: 320 / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.888e-05/0.3097, allocations: 6.344 kB / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3097, allocations: 4 kB / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.3098, allocations: 2.938 kB / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3098, allocations: 0 / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3098, allocations: 0 / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001448/0.3099, allocations: 120.8 kB / 0.5213 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.962e-05/0.31, allocations: 87.28 kB / 0.5214 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.31, allocations: 2.656 kB / 0.5214 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.726e-05/0.31, allocations: 6.938 kB / 0.5214 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.045e-05/0.3101, allocations: 0 / 0.5214 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.3101, allocations: 6.406 kB / 0.5214 GB, free: 32.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.727e-05/0.3102, allocations: 144 kB / 0.5215 GB, free: 32.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.3102, allocations: 0 / 0.5215 GB, free: 32.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001946/0.3104, allocations: 26.66 kB / 0.5216 GB, free: 32.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.001001/0.3114, allocations: 0.9437 MB / 0.5225 GB, free: 32.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.3115, allocations: 42.34 kB / 0.5225 GB, free: 32.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3116, allocations: 6.875 kB / 0.5225 GB, free: 32.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.289e-05/0.3116, allocations: 22.89 kB / 0.5226 GB, free: 32.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.3119, allocations: 24.41 kB / 0.5226 GB, free: 32.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008401/0.3127, allocations: 0.698 MB / 0.5233 GB, free: 31.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001195/0.3129, allocations: 0.7039 MB / 0.5239 GB, free: 30.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.83e-05/0.3129, allocations: 28.67 kB / 0.524 GB, free: 30.83 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3129, allocations: 0 / 0.524 GB, free: 30.83 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.947/3.26, allocations: 2.071 MB / 0.526 GB, free: 30.62 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test37.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test37.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test37.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test37.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test37_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test37_fmu --startTime=0 --stopTime=3.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test37.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test37.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test37_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test37/Test37.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test37.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches