Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.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.Test17,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test17",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test17,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001473/0.001473, 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.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001241/0.001241, allocations: 94.53 kB / 295.5 MB, free: 6.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.326/0.326, allocations: 44.81 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002982/0.0002982, allocations: 12 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3312, allocations: 62.96 MB / 0.516 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test17): time 0.001726/0.333, allocations: 1.428 MB / 0.5174 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.3342, allocations: 0.9442 MB / 0.5183 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.096e-05/0.3343, allocations: 6.719 kB / 0.5183 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002483/0.3345, allocations: 34.17 kB / 0.5183 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002222/0.3348, allocations: 70.64 kB / 0.5184 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.335, allocations: 102.6 kB / 0.5185 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000146/0.3352, allocations: 88.2 kB / 0.5186 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.313e-05/0.3353, allocations: 10.39 kB / 0.5186 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.148e-05/0.3354, allocations: 38.36 kB / 0.5186 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.139e-05/0.3354, allocations: 31.45 kB / 0.5187 GB, free: 35.22 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.3355, allocations: 2.75 kB / 0.5187 GB, free: 35.22 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.453e-05/0.3355, allocations: 36.56 kB / 0.5187 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.943e-05/0.3356, allocations: 14.09 kB / 0.5187 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.169e-05/0.3357, allocations: 66.53 kB / 0.5188 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.3358, allocations: 86.95 kB / 0.5188 GB, free: 35.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3358, allocations: 3.938 kB / 0.5189 GB, free: 35.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3358, allocations: 0 / 0.5189 GB, free: 35.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.3358, allocations: 0 / 0.5189 GB, free: 35.11 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.0004104/0.3362, allocations: 393.5 kB / 0.5192 GB, free: 34.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3363, allocations: 8.812 kB / 0.5192 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.811e-05/0.3363, allocations: 33.72 kB / 0.5193 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.268e-05/0.3364, allocations: 7.812 kB / 0.5193 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.3366, allocations: 223.8 kB / 0.5195 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.295e-06/0.3366, allocations: 3.344 kB / 0.5195 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.3366, allocations: 6.844 kB / 0.5195 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.3367, allocations: 50.42 kB / 0.5195 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.3367, allocations: 6.031 kB / 0.5196 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.3368, allocations: 0 / 0.5196 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3368, allocations: 0 / 0.5196 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.567e-05/0.3368, allocations: 22.67 kB / 0.5196 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002791/0.3371, allocations: 286 kB / 0.5198 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.3373, allocations: 60.64 kB / 0.5199 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.609e-05/0.3373, allocations: 17.89 kB / 0.5199 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.3373, allocations: 0 / 0.5199 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001496/0.3375, allocations: 76.31 kB / 0.52 GB, free: 33.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.3375, allocations: 0 / 0.52 GB, free: 33.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004474/0.338, allocations: 181.7 kB / 0.5202 GB, free: 33.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.338, allocations: 51.41 kB / 0.5202 GB, free: 33.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.3381, allocations: 186.5 kB / 0.5204 GB, free: 33.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.3382, allocations: 28.48 kB / 0.5204 GB, free: 33.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.576e-05/0.3382, allocations: 102.2 kB / 0.5205 GB, free: 33.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.3382, allocations: 22.84 kB / 0.5205 GB, free: 33.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-06/0.3382, allocations: 10.59 kB / 0.5206 GB, free: 33.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.145e-05/0.3383, allocations: 325.3 kB / 0.5209 GB, free: 33.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.993e-05/0.3383, allocations: 17.75 kB / 0.5209 GB, free: 33.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.164e-05/0.3384, allocations: 32.72 kB / 0.5209 GB, free: 33.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.253e-05/0.3385, allocations: 54.67 kB / 0.521 GB, free: 33.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.82e-07/0.3385, allocations: 0 / 0.521 GB, free: 33.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001445/0.3387, allocations: 113 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.3387, allocations: 5.75 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.3387, allocations: 0 / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.3387, allocations: 3.219 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.495e-05/0.3388, allocations: 14.84 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.3388, allocations: 7.875 kB / 0.5211 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.419e-05/0.3389, allocations: 10.3 kB / 0.5211 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.3389, allocations: 6.906 kB / 0.5211 GB, free: 33.08 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 6.632e-05/0.3389, allocations: 126.4 kB / 0.5212 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.492e-05/0.339, allocations: 9.125 kB / 0.5212 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.46e-05/0.339, allocations: 18.53 kB / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.339, allocations: 0 / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.716e-06/0.339, allocations: 0 / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.339, allocations: 3.938 kB / 0.5213 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003062/0.3393, allocations: 391.6 kB / 0.5216 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3393, allocations: 2.875 kB / 0.5216 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.802e-05/0.3394, allocations: 9.938 kB / 0.5217 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3394, allocations: 6.875 kB / 0.5217 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.3394, allocations: 7.469 kB / 0.5217 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3394, allocations: 0 / 0.5217 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3394, allocations: 2.969 kB / 0.5217 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/0.3396, allocations: 202.1 kB / 0.5219 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.152e-05/0.3396, allocations: 91.41 kB / 0.5219 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.3396, allocations: 10.88 kB / 0.522 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.557e-05/0.3397, allocations: 2.938 kB / 0.522 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.341e-05/0.3398, allocations: 6.375 kB / 0.522 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.3398, allocations: 6.688 kB / 0.522 GB, free: 32.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.146e-05/0.3399, allocations: 139.1 kB / 0.5221 GB, free: 32.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3399, allocations: 0 / 0.5221 GB, free: 32.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002304/0.3401, allocations: 26.53 kB / 0.5221 GB, free: 32.2 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.001138/0.3412, allocations: 1.107 MB / 0.5232 GB, free: 31.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001438/0.3414, allocations: 60.28 kB / 0.5233 GB, free: 31.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.3414, allocations: 0 / 0.5233 GB, free: 31.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.68e-05/0.3415, allocations: 24.19 kB / 0.5233 GB, free: 31.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.3418, allocations: 29.88 kB / 0.5233 GB, free: 31.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009031/0.3427, allocations: 0.7182 MB / 0.524 GB, free: 30.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000122/0.3428, allocations: 0.7101 MB / 0.5247 GB, free: 30.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.256e-05/0.3429, allocations: 33.02 kB / 0.5247 GB, free: 30.09 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3429, allocations: 0 / 0.5247 GB, free: 30.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.818/3.16, allocations: 2.241 MB / 0.5269 GB, free: 29.86 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test17_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test17.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test17/Test17.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches