Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test24.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test24,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test24",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test24,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test24",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001136/0.001136, allocations: 118.8 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 201.2 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2179/0.2179, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002399/0.002399, allocations: 84.09 kB / 480.9 MB, free: 4.457 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3679/0.3704, allocations: 62.43 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test24): time 0.003876/0.3743, allocations: 1.729 MB / 0.5323 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.3766, allocations: 1.022 MB / 0.5333 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.955e-05/0.3767, allocations: 1.312 kB / 0.5333 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003552/0.377, allocations: 44.02 kB / 0.5333 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003851/0.3774, allocations: 96.52 kB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00028/0.3777, allocations: 79.41 kB / 0.5335 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002205/0.378, allocations: 109.5 kB / 0.5336 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.3781, allocations: 13.48 kB / 0.5336 GB, free: 11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.3783, allocations: 44.28 kB / 0.5337 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.589e-05/0.3784, allocations: 30.8 kB / 0.5337 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.3784, allocations: 4.125 kB / 0.5337 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.3785, allocations: 51.47 kB / 0.5337 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.695e-05/0.3786, allocations: 18.8 kB / 0.5338 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.838e-05/0.3787, allocations: 33.38 kB / 0.5338 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.379, allocations: 128.4 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.379, allocations: 1.375 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.379, allocations: 0 / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.379, allocations: 0 / 0.5339 GB, free: 10.82 MB / 398.1 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.0007207/0.3798, allocations: 422.5 kB / 0.5343 GB, free: 10.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.3798, allocations: 9.625 kB / 0.5343 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.495e-05/0.3799, allocations: 32.12 kB / 0.5343 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.209e-05/0.3799, allocations: 18.25 kB / 0.5344 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003731/0.3803, allocations: 216.5 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.3803, allocations: 1.75 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.929e-05/0.3804, allocations: 5.312 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.3806, allocations: 57.98 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.3806, allocations: 1.375 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.3806, allocations: 0 / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.3806, allocations: 1.375 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001058/0.3808, allocations: 21.61 kB / 0.5347 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005443/0.3813, allocations: 292.2 kB / 0.5349 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002291/0.3816, allocations: 57.88 kB / 0.535 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.787e-05/0.3816, allocations: 21.09 kB / 0.535 GB, free: 9.664 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.3817, allocations: 5.312 kB / 0.535 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001962/0.3819, allocations: 73.05 kB / 0.5351 GB, free: 9.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=6): time 1.803e-06/0.3819, allocations: 0 / 0.5351 GB, free: 9.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.000815/0.3827, allocations: 175.3 kB / 0.5353 GB, free: 9.488 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.3828, allocations: 52.75 kB / 0.5353 GB, free: 9.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002915/0.3831, allocations: 208.2 kB / 0.5355 GB, free: 9.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.3831, allocations: 29.7 kB / 0.5355 GB, free: 9.242 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.494e-05/0.3832, allocations: 106.6 kB / 0.5356 GB, free: 9.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.31e-05/0.3833, allocations: 27.3 kB / 0.5357 GB, free: 9.117 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.905e-05/0.3834, allocations: 23.56 kB / 0.5357 GB, free: 9.094 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3835, allocations: 322.9 kB / 0.536 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.48e-05/0.3836, allocations: 23.98 kB / 0.536 GB, free: 8.762 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.3837, allocations: 42.58 kB / 0.5361 GB, free: 8.727 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.3839, allocations: 55.09 kB / 0.5361 GB, free: 8.691 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3839, allocations: 5.094 kB / 0.5361 GB, free: 8.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002843/0.3842, allocations: 111.1 kB / 0.5362 GB, free: 8.613 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.3842, allocations: 5.906 kB / 0.5362 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3843, allocations: 0 / 0.5362 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.3843, allocations: 5.047 kB / 0.5362 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.3844, allocations: 17.42 kB / 0.5362 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3844, allocations: 1.094 kB / 0.5362 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.916e-05/0.3845, allocations: 6.031 kB / 0.5363 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.3845, allocations: 6.344 kB / 0.5363 GB, free: 8.598 MB / 398.1 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 ($PRE.t_new.nextTimeEvent,$whenCondition1,t_new.nextTimeEventScaled,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.3847, allocations: 133.9 kB / 0.5364 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.586e-05/0.3847, allocations: 14.41 kB / 0.5364 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.876e-05/0.3848, allocations: 14.72 kB / 0.5364 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.3848, allocations: 1.094 kB / 0.5364 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3848, allocations: 1.125 kB / 0.5364 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.3848, allocations: 7.922 kB / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006158/0.3855, allocations: 399.9 kB / 0.5368 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3855, allocations: 0 / 0.5368 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.95e-05/0.3855, allocations: 8.094 kB / 0.5368 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.228e-06/0.3855, allocations: 5.031 kB / 0.5368 GB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.3856, allocations: 9.172 kB / 0.5368 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.3856, allocations: 1.125 kB / 0.5368 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3856, allocations: 5.031 kB / 0.5368 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000344/0.3859, allocations: 200.3 kB / 0.537 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.386, allocations: 92.86 kB / 0.5371 GB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.3861, allocations: 5.312 kB / 0.5371 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.3862, allocations: 6.266 kB / 0.5371 GB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.482e-05/0.3863, allocations: 3.656 kB / 0.5371 GB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.292e-05/0.3863, allocations: 6.719 kB / 0.5371 GB, free: 7.746 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002072/0.3865, allocations: 159 kB / 0.5373 GB, free: 7.637 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3865, allocations: 0 / 0.5373 GB, free: 7.637 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000485/0.387, allocations: 24.95 kB / 0.5373 GB, free: 7.629 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002142/0.3892, allocations: 1.097 MB / 0.5384 GB, free: 6.773 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002456/0.3894, allocations: 62.39 kB / 0.5384 GB, free: 6.746 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3894, allocations: 0 / 0.5384 GB, free: 6.746 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.3896, allocations: 33.92 kB / 0.5385 GB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006266/0.3902, allocations: 35.12 kB / 0.5385 GB, free: 6.715 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/0.3937, allocations: 1.688 MB / 0.5402 GB, free: 5.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005666/0.3943, allocations: 0.7111 MB / 0.5408 GB, free: 4.539 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.3944, allocations: 13.91 kB / 0.5409 GB, free: 4.535 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.3946, allocations: 38.73 kB / 0.5409 GB, free: 4.504 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3946, allocations: 0 / 0.5409 GB, free: 4.504 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02583/0.4204, allocations: 3.539 MB / 0.5444 GB, free: 2.594 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.518/7.939, allocations: 4.375 kB / 0.5444 GB, free: 2.594 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test24.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test24.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test24.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test24.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test24_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test24_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test24.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test24.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test24_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test24/Test24.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test24.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,t_new.y[1],d_t_new.y Variables in the result:d_t_new.u,d_t_new.y,der(d_t_new.u),t_new.columns[1],t_new.extrapolation,t_new.nHeaderLines,t_new.nout,t_new.offset[1],t_new.shiftTime,t_new.smoothness,t_new.startTime,t_new.t_max,t_new.t_maxScaled,t_new.t_min,t_new.t_minScaled,t_new.tableOnFile,t_new.table[1,1],t_new.table[1,2],t_new.table[2,1],t_new.table[2,2],t_new.table[3,1],t_new.table[3,2],t_new.table[4,1],t_new.table[4,2],t_new.timeEvents,t_new.timeScale,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],time