Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16.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: translateModel(ModelicaTest.Tables.CombiTimeTable.Test16,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16") translateModel(ModelicaTest.Tables.CombiTimeTable.Test16,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009522/0.0009521, allocations: 196.3 kB / 16.79 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 226.5 MB / 244.1 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007443/0.0007443, allocations: 88.31 kB / 296.1 MB, free: 6.707 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3681/0.3681, allocations: 44.82 MB / 392.9 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002976/0.0002977, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3762, allocations: 62.95 MB / 0.5165 GB, free: 37.34 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1299/0.5061, allocations: 90.61 MB / 0.605 GB, free: 14.79 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.5065, allocations: 79.95 kB / 0.605 GB, free: 14.71 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01738/0.5238, allocations: 6.344 MB / 0.6112 GB, free: 8.355 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5239, allocations: 0 / 0.6112 GB, free: 8.355 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.407e-05/0.5239, allocations: 4 kB / 0.6112 GB, free: 8.352 MB / 426.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.0006369/0.5246, allocations: 450.8 kB / 0.6117 GB, free: 7.859 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.294e-05/0.5247, allocations: 12.03 kB / 0.6117 GB, free: 7.848 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.147e-05/0.5247, allocations: 8.844 kB / 0.6117 GB, free: 7.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003005/0.525, allocations: 220 kB / 0.6119 GB, free: 7.586 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.5251, allocations: 4.375 kB / 0.6119 GB, free: 7.582 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.5251, allocations: 8.375 kB / 0.6119 GB, free: 7.574 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001388/0.5252, allocations: 54.22 kB / 0.612 GB, free: 7.516 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.5252, allocations: 192 / 0.612 GB, free: 7.516 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.5253, allocations: 7.938 kB / 0.612 GB, free: 7.508 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.5253, allocations: 0 / 0.612 GB, free: 7.508 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.425e-05/0.5254, allocations: 19.98 kB / 0.612 GB, free: 7.488 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004217/0.5258, allocations: 292.8 kB / 0.6123 GB, free: 7.152 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/0.526, allocations: 66.61 kB / 0.6123 GB, free: 7.078 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.466e-05/0.526, allocations: 20.84 kB / 0.6124 GB, free: 7.055 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.5261, allocations: 0 / 0.6124 GB, free: 7.055 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001554/0.5262, allocations: 75.33 kB / 0.6124 GB, free: 6.969 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.5262, allocations: 4 kB / 0.6124 GB, free: 6.965 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005677/0.5268, allocations: 177.2 kB / 0.6126 GB, free: 6.785 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.5269, allocations: 51.41 kB / 0.6126 GB, free: 6.723 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000181/0.527, allocations: 183.3 kB / 0.6128 GB, free: 6.531 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.5271, allocations: 29.7 kB / 0.6128 GB, free: 6.496 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.019e-05/0.5271, allocations: 100.1 kB / 0.6129 GB, free: 6.395 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.369e-05/0.5272, allocations: 27.64 kB / 0.613 GB, free: 6.367 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.142e-06/0.5272, allocations: 7.938 kB / 0.613 GB, free: 6.359 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5273, allocations: 330.8 kB / 0.6133 GB, free: 6.027 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.417e-05/0.5274, allocations: 19.94 kB / 0.6133 GB, free: 6.008 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.815e-05/0.5275, allocations: 37.7 kB / 0.6133 GB, free: 5.965 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.5276, allocations: 61.64 kB / 0.6134 GB, free: 5.898 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.5276, allocations: 0 / 0.6134 GB, free: 5.898 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001939/0.5278, allocations: 105.5 kB / 0.6135 GB, free: 5.789 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.5278, allocations: 8.031 kB / 0.6135 GB, free: 5.781 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.5279, allocations: 0 / 0.6135 GB, free: 5.781 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.5279, allocations: 0 / 0.6135 GB, free: 5.781 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.849e-05/0.528, allocations: 23.92 kB / 0.6135 GB, free: 5.758 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.528, allocations: 0 / 0.6135 GB, free: 5.758 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.495e-05/0.528, allocations: 4 kB / 0.6135 GB, free: 5.754 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.528, allocations: 4 kB / 0.6135 GB, free: 5.75 MB / 426.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 0.0001148/0.5282, allocations: 125.8 kB / 0.6137 GB, free: 5.617 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.192e-05/0.5282, allocations: 15.91 kB / 0.6137 GB, free: 5.602 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002654/0.5285, allocations: 115 kB / 0.6138 GB, free: 5.484 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.5285, allocations: 7.984 kB / 0.6138 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.5285, allocations: 0 / 0.6138 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.5285, allocations: 0 / 0.6138 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005358/0.5291, allocations: 415.2 kB / 0.6142 GB, free: 5.012 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.5291, allocations: 0 / 0.6142 GB, free: 5.012 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.248e-05/0.5291, allocations: 16.02 kB / 0.6142 GB, free: 4.996 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.5291, allocations: 0 / 0.6142 GB, free: 4.996 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.5291, allocations: 4 kB / 0.6142 GB, free: 4.992 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.5291, allocations: 0 / 0.6142 GB, free: 4.992 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.5292, allocations: 7.875 kB / 0.6142 GB, free: 4.984 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002637/0.5294, allocations: 204.6 kB / 0.6144 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.901e-05/0.5295, allocations: 92.91 kB / 0.6145 GB, free: 4.656 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.5295, allocations: 16.03 kB / 0.6145 GB, free: 4.641 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.051e-05/0.5296, allocations: 7.938 kB / 0.6145 GB, free: 4.633 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.5297, allocations: 7.922 kB / 0.6145 GB, free: 4.625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.126e-06/0.5297, allocations: 4 kB / 0.6145 GB, free: 4.621 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001347/0.5298, allocations: 142 kB / 0.6147 GB, free: 4.484 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5298, allocations: 4 kB / 0.6147 GB, free: 4.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002749/0.5301, allocations: 35.88 kB / 0.6147 GB, free: 4.445 MB / 426.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 (9): * Single equations (assignments): 7 * 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.001195/0.5313, allocations: 478.2 kB / 0.6152 GB, free: 4.133 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002335/0.5316, allocations: 59.92 kB / 0.6152 GB, free: 4.074 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5316, allocations: 0 / 0.6152 GB, free: 4.074 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 9.6e-05/0.5317, allocations: 36.05 kB / 0.6153 GB, free: 4.039 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/0.5321, allocations: 32.36 kB / 0.6153 GB, free: 4.012 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007405/0.5329, allocations: 272.1 kB / 0.6156 GB, free: 3.711 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000447/0.5333, allocations: 0.7004 MB / 0.6162 GB, free: 2.984 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.746e-05/0.5334, allocations: 23.42 kB / 0.6163 GB, free: 2.961 MB / 426.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5334, allocations: 0 / 0.6163 GB, free: 2.961 MB / 426.7 MB Notification: Performance of Templates: time 0.005189/0.5386, allocations: 1.943 MB / 0.6182 GB, free: 1.023 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test16/Test16.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test16.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches